The SubGeometry class is a collections of geometric data that describes a triangle mesh. It is owned by a
Geometry instance, and wrapped by a SubMesh in the scene graph.
Several SubGeometries are grouped so they can be rendered with different materials, but still represent a single
object.
animation:AnimationBase
[read-only]
The animation that affects the geometry.
Implementation
public function get animation():AnimationBase
autoDeriveVertexNormals:Boolean
[read-write]
True if the vertex normals should be derived from the geometry, false if the vertex normals are set
explicitly.
Implementation
public function get autoDeriveVertexNormals():Boolean
public function set autoDeriveVertexNormals(value:Boolean):void
autoDeriveVertexTangents:Boolean
[read-write]
True if the vertex tangents should be derived from the geometry, false if the vertex normals are set
explicitly.
Implementation
public function get autoDeriveVertexTangents():Boolean
public function set autoDeriveVertexTangents(value:Boolean):void
protected var _faceNormalsData:Vector
protected var _faceNormalsDirty:Boolean = true
protected var _faceTangents:Vector
protected var _faceTangentsDirty:Boolean = true
protected var _faceWeights:Vector
protected var _indexBuffer:Vector
protected var _indexBufferDirty:Vector
protected var _indices:Vector
protected var _maxIndex:int = -1
protected var _numIndices:uint
protected var _numTriangles:uint
numTriangles:uint
[read-only]
The total amount of triangles in the SubGeometry.
Implementation
public function get numTriangles():uint
protected var _numVertices:uint
numVertices:uint
[read-only]
The total amount of vertices in the SubGeometry.
Implementation
public function get numVertices():uint
parentGeometry:Geometry
[read-write]
Implementation
arcane function get parentGeometry():Geometry
arcane function set parentGeometry(value:Geometry):void
useFaceWeights:Boolean
[read-write]
Indicates whether or not to take the size of faces into account when auto-deriving vertex normals and tangents.
Implementation
public function get useFaceWeights():Boolean
public function set useFaceWeights(value:Boolean):void
protected var _uvBuffer:Vector
protected var _uvBufferDirty:Vector
UVData:Vector
[read-only]
The raw texture coordinate data.
Implementation
public function get UVData():Vector
protected var _uvs:Vector
protected var _vertexBuffer:Vector
protected var _vertexBufferDirty:Vector
vertexData:Vector
[read-only]
The raw vertex position data.
Implementation
public function get vertexData():Vector
protected var _vertexNormalBuffer:Vector
protected var _vertexNormalBufferDirty:Vector
vertexNormalData:Vector
[read-only]
The raw vertex normal data.
Implementation
public function get vertexNormalData():Vector
protected var _vertexNormals:Vector
protected var _vertexNormalsDirty:Boolean = true
protected var _vertexTangentBuffer:Vector
protected var _vertexTangentBufferDirty:Vector
protected var _vertexTangents:Vector
protected var _vertexTangentsDirty:Boolean = true
protected var _vertices:Vector
public function SubGeometry()
Init Parameters
public function clone():SubGeometry
Clones the current object
Returns
| SubGeometry —
An exact duplicate of the current object.
|
public function dispose():void
Clears all resources used by the SubGeometry object.
protected function disposeIndexBuffers(buffers:Vector):void
Disposes all buffers in a given vector.
Parameters
| buffers:Vector — The vector of buffers to dispose.
|
protected function disposeVertexBuffers(buffers:Vector):void
Disposes all buffers in a given vector.
Parameters
| buffers:Vector — The vector of buffers to dispose.
|
public function getIndexBuffer(context:Context3D, contextIndex:uint):IndexBuffer3D
Retrieves the VertexBuffer3D object that contains triangle indices.
Parameters
| context:Context3D — The Context3D for which we request the buffer
|
|
| contextIndex:uint |
Returns
| IndexBuffer3D — The VertexBuffer3D object that contains triangle indices.
|
public function getUVBuffer(context:Context3D, contextIndex:uint):VertexBuffer3D
Retrieves the VertexBuffer3D object that contains texture coordinates.
Parameters
| context:Context3D — The Context3D for which we request the buffer
|
|
| contextIndex:uint |
Returns
| VertexBuffer3D — The VertexBuffer3D object that contains texture coordinates.
|
public function getVertexBuffer(context:Context3D, contextIndex:uint):VertexBuffer3D
Retrieves the VertexBuffer3D object that contains vertex positions.
Parameters
| context:Context3D — The Context3D for which we request the buffer
|
|
| contextIndex:uint |
Returns
| VertexBuffer3D — The VertexBuffer3D object that contains vertex positions.
|
public function getVertexNormalBuffer(context:Context3D, contextIndex:uint):VertexBuffer3D
Retrieves the VertexBuffer3D object that contains vertex normals.
Parameters
| context:Context3D — The Context3D for which we request the buffer
|
|
| contextIndex:uint |
Returns
| VertexBuffer3D — The VertexBuffer3D object that contains vertex normals.
|
public function getVertexTangentBuffer(context:Context3D, contextIndex:uint):VertexBuffer3D
Retrieves the VertexBuffer3D object that contains vertex tangents.
Parameters
| context:Context3D — The Context3D for which we request the buffer
|
|
| contextIndex:uint |
Returns
| VertexBuffer3D — The VertexBuffer3D object that contains vertex tangents.
|
protected function invalidateBuffers(buffers:Vector):void
Invalidates all buffers in a vector, causing them the update when they are first requested.
Parameters
| buffers:Vector — The vector of buffers to invalidate.
|
public function scale(scale:Number):void
Scales the geometry.
Parameters
| scale:Number — The amount by which to scale.
|
public function scaleUV(scale:Number):void
Scales the uv coordinates.
Parameters
| scale:Number — The amount by which to scale.
|
public function updateIndexData(indices:Vector):void
Updates the face indices of the SubGeometry.
Parameters
| indices:Vector — The face indices to upload.
|
public function updateUVData(uvs:Vector):void
Updates the uv coordinates of the SubGeometry.
Parameters
| uvs:Vector — The uv coordinates to upload.
|
public function updateVertexData(vertices:Vector):void
Updates the vertex data of the SubGeometry.
Parameters
| vertices:Vector — The new vertex data to upload.
|
public function updateVertexNormalData(vertexNormals:Vector):void
Updates the vertex normals of the SubGeometry. When updating the vertex normals like this,
autoDeriveVertexNormals will be set to false and vertex normals will no longer be calculated automatically.
Parameters
| vertexNormals:Vector — The vertex normals to upload.
|
public function updateVertexTangentData(vertexTangents:Vector):void
Updates the vertex tangents of the SubGeometry. When updating the vertex tangents like this,
autoDeriveVertexTangents will be set to false and vertex tangents will no longer be calculated automatically.
Parameters
| vertexTangents:Vector — The vertex tangents to upload.
|