SubGeometry
The SubGeometry object 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.
Inherited from SubGeometryBase.
Has properties:
numVertices |
[read-only] int The total amount of vertices in the SubGeometry. |
secondaryUVData |
[read-only] vector array of numbers |
secondaryUVOffset |
[read-only] int |
secondaryUVStride |
[read-only] int |
UVData |
[override] [read-only] vector array of numbers. The raw texture coordinate data. |
UVOffset |
[override] [read-only] int |
UVStride |
[override] [read-only] int |
vertexData |
[override] [read-only] vector array of numbers. The raw vertex position data. |
vertexNormalData |
[override] [read-only] vector array of numbers. The raw vertex normal data. |
vertexNormalOffset |
[override] [read-only] int |
vertexNormalStride |
[override] [read-only] int |
vertexOffset |
[override] [read-only] int |
vertexPositionData |
[override] [read-only] vector array of numbers |
vertexStride |
[override] [read-only] int |
vertexTangentOffset |
[override] [read-only] int |
vertexTangentStride |
[override] [read-only] int |
methods:
activateSecondaryUVBuffer(index, stage3DProxy) |
Assigns the attribute stream for a secondary set of UV coordinates |
index - int stage3DProxy - (Stage3DProxy) |
activateUVBuffer(index, stage3DProxy) |
Assigns the attribute stream for UV coordinates |
index - int stage3DProxy - (Stage3DProxy) |
activateVertexBuffer(index, stage3DProxy) |
Assigns the attribute stream for vertex positions. |
index - int stage3DProxy - (Stage3DProxy) |
activateVertexNormalBuffer(index, stage3DProxy) |
Retrieves the VertexBuffer3D object that contains vertex normals. |
index - int stage3DProxy - (Stage3DProxy) |
activateVertexTangentBuffer(index, stage3DProxy) |
Retrieves the VertexBuffer3D object that contains vertex tangents. |
index - int stage3DProxy - (Stage3DProxy) |
applyTransformation(transform) |
[override] |
transform - (Matrix3D) |
clone() |
Clones the current object |
|
cloneWithSeperateBuffers() |
Returns (SubGeometry) |
|
dispose() |
[override] Clears all resources used by the SubGeometry object. |
|
fromVectors(verts, uvs, normals, tangents) |
|
verts - Vector array of numbers uvs - Vector array of numbers normals - Vector array of numbers tangents - Vector array of numbers |
scale(scale) |
[override] |
scale - float |
scaleUV(scaleU, scaleV) |
[override] |
scaleU - (default = 1) scaleV - (default = 1) |
updateSecondaryUVData(uvs) |
|
uvs - Vector array of numbers |
updateUVData(uvs) |
Updates the uv coordinates of the SubGeometry. |
uvs - Vector array of numbers. The uv coordinates to upload. |
updateVertexData(vertices) |
Updates the vertex data of the SubGeometry. |
vertices - Vector array of numbers. The new vertex data to upload. |
updateVertexNormalData(vertexNormals) |
Updates the vertex normals of the SubGeometry. |
vertexNormals - Vector array of numbers. The vertex normals to upload. |
updateVertexTangentData(vertexTangents) |
Updates the vertex tangents of the SubGeometry. |
vertexTangents - Vector array of numbers. The vertex tangents to upload. |
Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents