class SubGeometry
package away3d.core.base
extends SubGeometryBase
implements ISubGeometry
Available on all platforms
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.
See also:
away3d.core.base.Geometry
away3d.core.base.SubMesh
Constructor
Variables
Methods
activateVertexNormalBuffer(index:Int, stage3DProxy:Stage3DProxy):Void
Retrieves the VertexBuffer3D object that contains vertex normals.
Parameters:
context | The Context3D for which we request the buffer |
|---|
Returns:
The VertexBuffer3D object that contains vertex normals.
activateVertexTangentBuffer(index:Int, stage3DProxy:Stage3DProxy):Void
Retrieves the VertexBuffer3D object that contains vertex tangents.
Parameters:
context | The Context3D for which we request the buffer |
|---|
Returns:
The VertexBuffer3D object that contains vertex tangents.
fromVectors(vertices:Vector<Float>, uvs:Vector<Float>, normals:Vector<Float>, tangents:Vector<Float>):Void
updateUVData(uvs:Vector<Float>):Void
Updates the uv coordinates of the SubGeometry.
Parameters:
uvs | The uv coordinates to upload. |
|---|
updateVertexData(vertices:Vector<Float>):Void
Updates the vertex data of the SubGeometry.
Parameters:
vertices | The new vertex data to upload. |
|---|
updateVertexNormalData(vertexNormals:Vector<Float>):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 | The vertex normals to upload. |
|---|
updateVertexTangentData(vertexTangents:Vector<Float>):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 | The vertex tangents to upload. |
|---|