CustomPartLoader

Closure which loads parts from an arbitrary source The first parameter is the part index which uniquely identifiers a part; these are assigned by the loader The second parameter is a PartGenerator the loader uses to get a ShapeWriter or CompositeWriter to create the requested part The result is the generated part, passed back in a PartResult

Declaration

typealias CustomPartLoader = (Int, any PartGenerator) -> PartResult