| Package | away3d.core.base |
| Class | public class SubGeometry |
| Inheritance | SubGeometry SubGeometryBase Object |
| Implements | ISubGeometry |
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | autoDeriveVertexNormals : Boolean
True if the vertex normals should be derived from the geometry, false if the vertex normals are set
explicitly. | SubGeometryBase | |
![]() | autoDeriveVertexTangents : Boolean
True if the vertex tangents should be derived from the geometry, false if the vertex normals are set
explicitly. | SubGeometryBase | |
![]() | autoGenerateDummyUVs : Boolean
Defines whether a UV buffer should be automatically generated to contain dummy UV coordinates. | SubGeometryBase | |
![]() | numTriangles : uint [read-only]
The total amount of triangles in the SubGeometry. | SubGeometryBase | |
| numVertices : uint [read-only]
The total amount of vertices in the SubGeometry. | SubGeometry | ||
![]() | parentGeometry : Geometry | SubGeometryBase | |
![]() | scaleU : Number [read-only]
Scales the uv coordinates
| SubGeometryBase | |
![]() | scaleV : Number [read-only] | SubGeometryBase | |
| secondaryUVData : Vector.<Number> [read-only] | SubGeometry | ||
| secondaryUVOffset : int [read-only] | SubGeometry | ||
| secondaryUVStride : uint [read-only] | SubGeometry | ||
![]() | useFaceWeights : Boolean
Indicates whether or not to take the size of faces into account when auto-deriving vertex normals and tangents. | SubGeometryBase | |
| UVData : Vector.<Number> [override] [read-only]
The raw texture coordinate data. | SubGeometry | ||
| UVOffset : int [override] [read-only] | SubGeometry | ||
| UVStride : uint [override] [read-only] | SubGeometry | ||
| vertexData : Vector.<Number> [override] [read-only]
The raw vertex position data. | SubGeometry | ||
| vertexNormalData : Vector.<Number> [override] [read-only]
The raw vertex normal data. | SubGeometry | ||
| vertexNormalOffset : int [override] [read-only] | SubGeometry | ||
| vertexNormalStride : uint [override] [read-only] | SubGeometry | ||
| vertexOffset : int [override] [read-only] | SubGeometry | ||
| vertexPositionData : Vector.<Number> [override] [read-only] | SubGeometry | ||
| vertexStride : uint [override] [read-only] | SubGeometry | ||
![]() | vertexTangentData : Vector.<Number> [read-only] | SubGeometryBase | |
| vertexTangentOffset : int [override] [read-only] | SubGeometry | ||
| vertexTangentStride : uint [override] [read-only] | SubGeometry | ||
| Property | Defined By | ||
|---|---|---|---|
![]() | _autoDeriveVertexNormals : Boolean = true | SubGeometryBase | |
![]() | _autoDeriveVertexTangents : Boolean = true | SubGeometryBase | |
![]() | _autoGenerateUVs : Boolean = false | SubGeometryBase | |
![]() | _faceNormals : Vector.<Number> | SubGeometryBase | |
![]() | _faceNormalsDirty : Boolean = true | SubGeometryBase | |
![]() | _faceTangents : Vector.<Number> | SubGeometryBase | |
![]() | _faceTangentsDirty : Boolean = true | SubGeometryBase | |
![]() | _faceWeights : Vector.<Number> | SubGeometryBase | |
![]() | _indexBuffer : Vector.<IndexBuffer3D> | SubGeometryBase | |
![]() | _indexBufferContext : Vector.<Context3D> | SubGeometryBase | |
![]() | _indices : Vector.<uint> | SubGeometryBase | |
![]() | _indicesInvalid : Vector.<Boolean> | SubGeometryBase | |
| _normalsInvalid : Vector.<Boolean> | SubGeometry | ||
![]() | _numIndices : uint | SubGeometryBase | |
![]() | _numTriangles : uint | SubGeometryBase | |
| _numVertices : uint | SubGeometry | ||
| _secondaryUvBuffer : Vector.<VertexBuffer3D> | SubGeometry | ||
| _secondaryUvBufferContext : Vector.<Context3D> | SubGeometry | ||
| _secondaryUvs : Vector.<Number> | SubGeometry | ||
| _secondaryUvsInvalid : Vector.<Boolean> | SubGeometry | ||
| _tangentsInvalid : Vector.<Boolean> | SubGeometry | ||
| _uvBuffer : Vector.<VertexBuffer3D> | SubGeometry | ||
| _uvBufferContext : Vector.<Context3D> | SubGeometry | ||
| _uvs : Vector.<Number> | SubGeometry | ||
![]() | _uvsDirty : Boolean = true | SubGeometryBase | |
| _uvsInvalid : Vector.<Boolean> | SubGeometry | ||
| _vertexBuffer : Vector.<VertexBuffer3D> | SubGeometry | ||
| _vertexBufferContext : Vector.<Context3D> | SubGeometry | ||
![]() | _vertexData : Vector.<Number> | SubGeometryBase | |
| _vertexNormalBuffer : Vector.<VertexBuffer3D> | SubGeometry | ||
| _vertexNormalBufferContext : Vector.<Context3D> | SubGeometry | ||
| _vertexNormals : Vector.<Number> | SubGeometry | ||
![]() | _vertexNormalsDirty : Boolean = true | SubGeometryBase | |
| _vertexTangentBuffer : Vector.<VertexBuffer3D> | SubGeometry | ||
| _vertexTangentBufferContext : Vector.<Context3D> | SubGeometry | ||
| _vertexTangents : Vector.<Number> | SubGeometry | ||
![]() | _vertexTangentsDirty : Boolean = true | SubGeometryBase | |
| _verticesInvalid : Vector.<Boolean> | SubGeometry | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new SubGeometry object. | SubGeometry | ||
activateSecondaryUVBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for a secondary set of UV coordinates
| SubGeometry | ||
activateUVBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for UV coordinates
| SubGeometry | ||
activateVertexBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for vertex positions. | SubGeometry | ||
activateVertexNormalBuffer(index:int, stage3DProxy:Stage3DProxy):void
Retrieves the VertexBuffer3D object that contains vertex normals. | SubGeometry | ||
activateVertexTangentBuffer(index:int, stage3DProxy:Stage3DProxy):void
Retrieves the VertexBuffer3D object that contains vertex tangents. | SubGeometry | ||
applyTransformation(transform:Matrix3D):void [override] | SubGeometry | ||
Clones the current object
| SubGeometry | ||
| SubGeometry | |||
dispose():void [override]
Clears all resources used by the SubGeometry object. | SubGeometry | ||
fromVectors(vertices:Vector.<Number>, uvs:Vector.<Number>, normals:Vector.<Number>, tangents:Vector.<Number>):void | SubGeometry | ||
![]() | getIndexBuffer(stage3DProxy:Stage3DProxy):IndexBuffer3D
Retrieves the VertexBuffer3D object that contains triangle indices. | SubGeometryBase | |
scale(scale:Number):void [override]
| SubGeometry | ||
scaleUV(scaleU:Number = 1, scaleV:Number = 1):void [override]
| SubGeometry | ||
![]() | updateIndexData(indices:Vector.<uint>):void
Updates the face indices of the SubGeometry. | SubGeometryBase | |
updateSecondaryUVData(uvs:Vector.<Number>):void | SubGeometry | ||
updateUVData(uvs:Vector.<Number>):void
Updates the uv coordinates of the SubGeometry. | SubGeometry | ||
updateVertexData(vertices:Vector.<Number>):void
Updates the vertex data of the SubGeometry. | SubGeometry | ||
updateVertexNormalData(vertexNormals:Vector.<Number>):void
Updates the vertex normals of the SubGeometry. | SubGeometry | ||
updateVertexTangentData(vertexTangents:Vector.<Number>):void
Updates the vertex tangents of the SubGeometry. | SubGeometry | ||
| Method | Defined By | ||
|---|---|---|---|
disposeAllVertexBuffers():void | SubGeometry | ||
disposeForStage3D(stage3DProxy:Stage3DProxy):void | SubGeometry | ||
![]() | disposeIndexBuffers(buffers:Vector.<IndexBuffer3D>):void
Disposes all buffers in a given vector. | SubGeometryBase | |
![]() | disposeVertexBuffers(buffers:Vector.<VertexBuffer3D>):void
Disposes all buffers in a given vector. | SubGeometryBase | |
![]() | invalidateBounds():void | SubGeometryBase | |
![]() | invalidateBuffers(invalid:Vector.<Boolean>):void
Invalidates all buffers in a vector, causing them the update when they are first requested. | SubGeometryBase | |
updateDummyUVs(target:Vector.<Number>):Vector.<Number> [override] | SubGeometry | ||
![]() | updateFaceTangents():void
Updates the tangents for each face. | SubGeometryBase | |
updateVertexNormals(target:Vector.<Number>):Vector.<Number> [override] | SubGeometry | ||
updateVertexTangents(target:Vector.<Number>):Vector.<Number> [override] | SubGeometry | ||
| _normalsInvalid | property |
protected var _normalsInvalid:Vector.<Boolean>| _numVertices | property |
protected var _numVertices:uint| _secondaryUvBuffer | property |
protected var _secondaryUvBuffer:Vector.<VertexBuffer3D>| _secondaryUvBufferContext | property |
protected var _secondaryUvBufferContext:Vector.<Context3D>| _secondaryUvs | property |
protected var _secondaryUvs:Vector.<Number>| _secondaryUvsInvalid | property |
protected var _secondaryUvsInvalid:Vector.<Boolean>| _tangentsInvalid | property |
protected var _tangentsInvalid:Vector.<Boolean>| _uvBuffer | property |
protected var _uvBuffer:Vector.<VertexBuffer3D>| _uvBufferContext | property |
protected var _uvBufferContext:Vector.<Context3D>| _uvs | property |
protected var _uvs:Vector.<Number>| _uvsInvalid | property |
protected var _uvsInvalid:Vector.<Boolean>| _vertexBuffer | property |
protected var _vertexBuffer:Vector.<VertexBuffer3D>| _vertexBufferContext | property |
protected var _vertexBufferContext:Vector.<Context3D>| _vertexNormalBuffer | property |
protected var _vertexNormalBuffer:Vector.<VertexBuffer3D>| _vertexNormalBufferContext | property |
protected var _vertexNormalBufferContext:Vector.<Context3D>| _vertexNormals | property |
protected var _vertexNormals:Vector.<Number>| _vertexTangentBuffer | property |
protected var _vertexTangentBuffer:Vector.<VertexBuffer3D>| _vertexTangentBufferContext | property |
protected var _vertexTangentBufferContext:Vector.<Context3D>| _vertexTangents | property |
protected var _vertexTangents:Vector.<Number>| _verticesInvalid | property |
protected var _verticesInvalid:Vector.<Boolean>| numVertices | property |
numVertices:uint [read-only] The total amount of vertices in the SubGeometry.
public function get numVertices():uint| secondaryUVData | property |
secondaryUVData:Vector.<Number> [read-only] public function get secondaryUVData():Vector.<Number>| secondaryUVOffset | property |
secondaryUVOffset:int [read-only] public function get secondaryUVOffset():int| secondaryUVStride | property |
secondaryUVStride:uint [read-only] public function get secondaryUVStride():uint| UVData | property |
UVData:Vector.<Number> [read-only] [override] The raw texture coordinate data.
public function get UVData():Vector.<Number>| UVOffset | property |
UVOffset:int [read-only] [override] public function get UVOffset():int| UVStride | property |
UVStride:uint [read-only] [override] public function get UVStride():uint| vertexData | property |
vertexData:Vector.<Number> [read-only] [override] The raw vertex position data.
public function get vertexData():Vector.<Number>| vertexNormalData | property |
vertexNormalData:Vector.<Number> [read-only] [override] The raw vertex normal data.
public function get vertexNormalData():Vector.<Number>| vertexNormalOffset | property |
vertexNormalOffset:int [read-only] [override] public function get vertexNormalOffset():int| vertexNormalStride | property |
vertexNormalStride:uint [read-only] [override] public function get vertexNormalStride():uint| vertexOffset | property |
vertexOffset:int [read-only] [override] public function get vertexOffset():int| vertexPositionData | property |
vertexPositionData:Vector.<Number> [read-only] [override] public function get vertexPositionData():Vector.<Number>| vertexStride | property |
vertexStride:uint [read-only] [override] public function get vertexStride():uint| vertexTangentOffset | property |
vertexTangentOffset:int [read-only] [override] public function get vertexTangentOffset():int| vertexTangentStride | property |
vertexTangentStride:uint [read-only] [override] public function get vertexTangentStride():uint| SubGeometry | () | Constructor |
public function SubGeometry()Creates a new SubGeometry object.
| activateSecondaryUVBuffer | () | method |
public function activateSecondaryUVBuffer(index:int, stage3DProxy:Stage3DProxy):voidAssigns the attribute stream for a secondary set of UV coordinates
Parameters
index:int — The attribute stream index for the vertex shader
| |
stage3DProxy:Stage3DProxy — The Stage3DProxy to assign the stream to
|
| activateUVBuffer | () | method |
public function activateUVBuffer(index:int, stage3DProxy:Stage3DProxy):voidAssigns the attribute stream for UV coordinates
Parameters
index:int — The attribute stream index for the vertex shader
| |
stage3DProxy:Stage3DProxy — The Stage3DProxy to assign the stream to
|
| activateVertexBuffer | () | method |
public function activateVertexBuffer(index:int, stage3DProxy:Stage3DProxy):voidAssigns the attribute stream for vertex positions.
Parameters
index:int — The attribute stream index for the vertex shader
| |
stage3DProxy:Stage3DProxy — The Stage3DProxy to assign the stream to
|
| activateVertexNormalBuffer | () | method |
public function activateVertexNormalBuffer(index:int, stage3DProxy:Stage3DProxy):voidRetrieves the VertexBuffer3D object that contains vertex normals.
Parameters
index:int — The Context3D for which we request the buffer
| |
stage3DProxy:Stage3DProxy |
| activateVertexTangentBuffer | () | method |
public function activateVertexTangentBuffer(index:int, stage3DProxy:Stage3DProxy):voidRetrieves the VertexBuffer3D object that contains vertex tangents.
Parameters
index:int — The Context3D for which we request the buffer
| |
stage3DProxy:Stage3DProxy |
| applyTransformation | () | method |
override public function applyTransformation(transform:Matrix3D):voidParameters
transform:Matrix3D |
| clone | () | method |
public function clone():ISubGeometryClones the current object
ReturnsISubGeometry — An exact duplicate of the current object.
|
| cloneWithSeperateBuffers | () | method |
| dispose | () | method |
override public function dispose():voidClears all resources used by the SubGeometry object.
| disposeAllVertexBuffers | () | method |
protected function disposeAllVertexBuffers():void| disposeForStage3D | () | method |
protected function disposeForStage3D(stage3DProxy:Stage3DProxy):voidParameters
stage3DProxy:Stage3DProxy |
| fromVectors | () | method |
public function fromVectors(vertices:Vector.<Number>, uvs:Vector.<Number>, normals:Vector.<Number>, tangents:Vector.<Number>):voidParameters
vertices:Vector.<Number> | |
uvs:Vector.<Number> | |
normals:Vector.<Number> | |
tangents:Vector.<Number> |
| scale | () | method |
override public function scale(scale:Number):void
Parameters
scale:Number |
| scaleUV | () | method |
override public function scaleUV(scaleU:Number = 1, scaleV:Number = 1):void
Parameters
scaleU:Number (default = 1) | |
scaleV:Number (default = 1) |
| updateDummyUVs | () | method |
override protected function updateDummyUVs(target:Vector.<Number>):Vector.<Number>Parameters
target:Vector.<Number> |
Vector.<Number> |
| updateSecondaryUVData | () | method |
public function updateSecondaryUVData(uvs:Vector.<Number>):voidParameters
uvs:Vector.<Number> |
| updateUVData | () | method |
public function updateUVData(uvs:Vector.<Number>):voidUpdates the uv coordinates of the SubGeometry.
Parameters
uvs:Vector.<Number> — The uv coordinates to upload.
|
| updateVertexData | () | method |
public function updateVertexData(vertices:Vector.<Number>):voidUpdates the vertex data of the SubGeometry.
Parameters
vertices:Vector.<Number> — The new vertex data to upload.
|
| updateVertexNormalData | () | method |
public function updateVertexNormalData(vertexNormals:Vector.<Number>):voidUpdates 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.<Number> — The vertex normals to upload.
|
| updateVertexNormals | () | method |
override protected function updateVertexNormals(target:Vector.<Number>):Vector.<Number>Parameters
target:Vector.<Number> |
Vector.<Number> |
| updateVertexTangentData | () | method |
public function updateVertexTangentData(vertexTangents:Vector.<Number>):voidUpdates 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.<Number> — The vertex tangents to upload.
|
| updateVertexTangents | () | method |
override protected function updateVertexTangents(target:Vector.<Number>):Vector.<Number>Parameters
target:Vector.<Number> |
Vector.<Number> |