ImporterShape (object)¶
The ImporterShape represents an imported shape. The ImporterShape provides access to the underlying Geometry, the bounds as well as to the ImporterMaterial array used for the shape.
Members¶
Importer | importer | |
ImporterCallback | callback | |
String | id | |
UInt32 | version | |
Ref<ImporterObject> | parentObject | |
String | path | |
String | type | |
String[] | curves | |
ImporterProperty[String] | properties | |
ImporterProperty[String] | propertyCaches | |
Boolean[String] | propertyConstant | |
ImporterObjectMetaData | metaData | |
ImporterContext | defaultContext | |
ImporterObjectContexts | lastContextsPerProperty | |
Boolean | transformSetOnce | |
Mat44 | mergeInvMat | |
Ref<ImporterObject>[] | mergedShapes |
Methods¶
ImporterShape ( in ImporterShape other ) | |
ImporterShape ( in String id, in String path ) | |
ImporterShape () | |
addMaterial ! ( in String material ) | |
ImporterShape | clone ? () |
cloneMembersTo ? ( io ImporterShape other ) | |
Box3 | getBounds ? ( in ImporterContext context ) |
Boolean | getCollisionEnabled ? ( in ImporterContext context ) |
Geometry | getGeometry ? ( in ImporterContext context ) |
Integer | getGeometryType ? ( in ImporterContext context ) |
UInt32 | getMaterialCount ? ( in ImporterContext context ) |
Ref<ImporterObject>[] | getMaterials ? ( in ImporterContext context ) |
initialize ! ( in String id, in String path, in String type ) | |
Boolean | setAsMerged ! ( in Ref<ImporterObject> shapes[] ) |
setBounds ! ( in Box3 bounds ) | |
setCollisionEnabled ! ( in Boolean collisionEnabled ) | |
setGeometry ! ( in Geometry geometry ) | |
setGeometryType ! ( in Integer geoType ) | |
setMaterials ! ( in String materials[] ) | |
Boolean | updateProperty ! ( in String value, in ImporterContext context ) |
Methods in detail¶
ImporterShape ( in ImporterShape other )
copy constructor
ImporterShape ( in String id, in String path )
default constructor
ImporterShape.addMaterial! ( in String material )
ImporterShape ImporterShape.clone? ()
clone method
ImporterShape.cloneMembersTo? ( io ImporterShape other )
Box3 ImporterShape.getBounds? ( in ImporterContext context )
Boolean ImporterShape.getCollisionEnabled? ( in ImporterContext context )
Geometry ImporterShape.getGeometry? ( in ImporterContext context )
Integer ImporterShape.getGeometryType? ( in ImporterContext context )
UInt32 ImporterShape.getMaterialCount? ( in ImporterContext context )
Ref<ImporterObject>[] ImporterShape.getMaterials? ( in ImporterContext context )
ImporterShape.initialize! ( in String id, in String path, in String type )
Boolean ImporterShape.setAsMerged! ( in Ref<ImporterObject> shapes[] )
Sets this shape to be the union of a series of other shapes. This is useful if you want to reduce the number of meshes within an import.
ImporterShape.setBounds! ( in Box3 bounds )
ImporterShape.setCollisionEnabled! ( in Boolean collisionEnabled )
ImporterShape.setGeometry! ( in Geometry geometry )
ImporterShape.setGeometryType! ( in Integer geoType )
ImporterShape.setMaterials! ( in String materials[] )
Boolean ImporterShape.updateProperty! ( in String value, in ImporterContext context )