MaplyGeomModel

Objective-C

@interface MaplyGeomModel : NSObject

Swift

class MaplyGeomModel : NSObject

Contains a big pile of geometry and textures (e.g. a model).

The geometry model

  • Initialize with the full path to a Wavefront OBJ model file.

    This creates a model from a Wavefront OBJ file, a standard, simple file format for models. You can then instance and place this model where you might like.

    Declaration

    Objective-C

    - (nullable instancetype)initWithObj:(NSString *_Nonnull)fullPath;

    Swift

    init?(obj fullPath: String)
  • Initialize with a shape.

    The given shape will be turned into a geometry model so it can be instanced.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithShape:(MaplyShape *_Nonnull)shape;

    Swift

    init(shape: MaplyShape)