Geometry
Geometry is a collection of SubGeometries, each of which contain the actual geometrical data such as vertices, normals, uvs, etc. It also contains a reference to an animation object, which defines how the geometry moves. A Geometry object is assigned to a Mesh, a scene graph occurence of the geometry, which in turn assigns the SubGeometries to its respective SubMesh objects.
Inherited from NamedAssetBase -> EventDispatcher.
Created Geometry object has properties:
assetType |
[read-only] String |
subGeometries |
[read-only] A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc. Vector array of ISubGeometry: (CompactSubGeometry), (SubGeometry) |
methods:
addSubGeometry(subGeometry) |
Adds a new SubGeometry object to the list. |
subGeometry - The SubGeometry object to be added. ISubGeometry: (CompactSubGeometry), (SubGeometry) |
applyTransformation(transform) |
|
transform - (Matrix3D) |
clone() |
Clones the geometry. |
|
convertToSeparateBuffers() |
Updates the SubGeometries so all vertex data is represented in different buffers. |
|
dispose() |
Clears all resources used by the Geometry object, including SubGeometries. |
|
removeSubGeometry(subGeometry) |
Removes a new SubGeometry object from the list. |
subGeometry - The SubGeometry object to be removed. ISubGeometry: (CompactSubGeometry), (SubGeometry) |
scale(scale) |
Scales the geometry. |
scale - The amount by which to scale. |
scaleUV(scaleU, scaleV) |
Scales the uv coordinates (tiling) |
scaleU - (default = 1) - The amount by which to scale on the u axis. Default is 1 scaleV - (default = 1) - The amount by which to scale on the v axis. Default is 1 |
Created with the Personal Edition of HelpNDoc: Easily create EBooks