Package | away3d.core.base |
Class | public class CompactSubGeometry |
Inheritance | CompactSubGeometry SubGeometryBase Object |
Implements | ISubGeometry |
Subclasses | SkinnedSubGeometry |
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] | CompactSubGeometry | ||
parentGeometry : Geometry | SubGeometryBase | ||
scaleU : Number [read-only]
Scales the uv coordinates
| SubGeometryBase | ||
scaleV : Number [read-only] | SubGeometryBase | ||
secondaryUVOffset : int [read-only] | CompactSubGeometry | ||
secondaryUVStride : uint [read-only] | CompactSubGeometry | ||
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] | CompactSubGeometry | ||
UVOffset : int [override] [read-only] | CompactSubGeometry | ||
UVStride : uint [override] [read-only] | CompactSubGeometry | ||
vertexData : Vector.<Number> [override] [read-only] | CompactSubGeometry | ||
vertexNormalData : Vector.<Number> [override] [read-only] | CompactSubGeometry | ||
vertexNormalOffset : int [override] [read-only] | CompactSubGeometry | ||
vertexNormalStride : uint [override] [read-only] | CompactSubGeometry | ||
vertexOffset : int [override] [read-only] | CompactSubGeometry | ||
vertexStride : uint [override] [read-only] | CompactSubGeometry | ||
vertexTangentData : Vector.<Number> [override] [read-only] | CompactSubGeometry | ||
vertexTangentOffset : int [override] [read-only] | CompactSubGeometry | ||
vertexTangentStride : uint [override] [read-only] | CompactSubGeometry |
Method | Defined By | ||
---|---|---|---|
CompactSubGeometry | |||
activateSecondaryUVBuffer(index:int, stage3DProxy:Stage3DProxy):void | CompactSubGeometry | ||
activateUVBuffer(index:int, stage3DProxy:Stage3DProxy):void | CompactSubGeometry | ||
activateVertexBuffer(index:int, stage3DProxy:Stage3DProxy):void | CompactSubGeometry | ||
activateVertexNormalBuffer(index:int, stage3DProxy:Stage3DProxy):void | CompactSubGeometry | ||
activateVertexTangentBuffer(index:int, stage3DProxy:Stage3DProxy):void | CompactSubGeometry | ||
applyTransformation(transform:Matrix3D):void [override] | CompactSubGeometry | ||
CompactSubGeometry | |||
CompactSubGeometry | |||
dispose():void [override] | CompactSubGeometry | ||
fromVectors(verts:Vector.<Number>, uvs:Vector.<Number>, normals:Vector.<Number>, tangents:Vector.<Number>):void | CompactSubGeometry | ||
getIndexBuffer(stage3DProxy:Stage3DProxy):IndexBuffer3D
Retrieves the VertexBuffer3D object that contains triangle indices. | SubGeometryBase | ||
scale(scale:Number):void [override] | CompactSubGeometry | ||
scaleUV(scaleU:Number = 1, scaleV:Number = 1):void [override] | CompactSubGeometry | ||
updateData(data:Vector.<Number>):void
Updates the vertex data. | CompactSubGeometry | ||
updateIndexData(indices:Vector.<uint>):void
Updates the face indices of the SubGeometry. | SubGeometryBase |
Method | Defined By | ||
---|---|---|---|
createBuffer(contextIndex:int, context:Context3D):void | CompactSubGeometry | ||
disposeIndexBuffers(buffers:Vector.<IndexBuffer3D>):void
Disposes all buffers in a given vector. | SubGeometryBase | ||
disposeVertexBuffers(buffers:Vector.<VertexBuffer3D>):void [override] | CompactSubGeometry | ||
invalidateBounds():void | SubGeometryBase | ||
invalidateBuffers(invalid:Vector.<Boolean>):void [override] | CompactSubGeometry | ||
stripBuffer(offset:int, numEntries:int):Vector.<Number> | CompactSubGeometry | ||
updateActiveBuffer(contextIndex:int):void | CompactSubGeometry | ||
updateDummyUVs(target:Vector.<Number>):Vector.<Number> | SubGeometryBase | ||
updateFaceTangents():void
Updates the tangents for each face. | SubGeometryBase | ||
updateVertexNormals(target:Vector.<Number>):Vector.<Number> [override] | CompactSubGeometry | ||
updateVertexTangents(target:Vector.<Number>):Vector.<Number> [override] | CompactSubGeometry | ||
uploadData(contextIndex:int):void | CompactSubGeometry |
_activeBuffer | property |
protected var _activeBuffer:VertexBuffer3D
_activeContext | property |
protected var _activeContext:Context3D
_activeDataInvalid | property |
protected var _activeDataInvalid:Boolean
_bufferContext | property |
protected var _bufferContext:Vector.<Context3D>
_contextIndex | property |
protected var _contextIndex:int
_numVertices | property |
protected var _numVertices:uint
_vertexBuffer | property |
protected var _vertexBuffer:Vector.<VertexBuffer3D>
_vertexDataInvalid | property |
protected var _vertexDataInvalid:Vector.<Boolean>
numVertices | property |
numVertices:uint
[read-only] public function get numVertices():uint
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] 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] public function get vertexData():Vector.<Number>
vertexNormalData | property |
vertexNormalData:Vector.<Number>
[read-only] [override] 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
vertexStride | property |
vertexStride:uint
[read-only] [override] public function get vertexStride():uint
vertexTangentData | property |
vertexTangentData:Vector.<Number>
[read-only] [override] public function get vertexTangentData():Vector.<Number>
vertexTangentOffset | property |
vertexTangentOffset:int
[read-only] [override] public function get vertexTangentOffset():int
vertexTangentStride | property |
vertexTangentStride:uint
[read-only] [override] public function get vertexTangentStride():uint
CompactSubGeometry | () | Constructor |
public function CompactSubGeometry()
activateSecondaryUVBuffer | () | method |
public function activateSecondaryUVBuffer(index:int, stage3DProxy:Stage3DProxy):void
Parameters
index:int | |
stage3DProxy:Stage3DProxy |
activateUVBuffer | () | method |
public function activateUVBuffer(index:int, stage3DProxy:Stage3DProxy):void
Parameters
index:int | |
stage3DProxy:Stage3DProxy |
activateVertexBuffer | () | method |
public function activateVertexBuffer(index:int, stage3DProxy:Stage3DProxy):void
Parameters
index:int | |
stage3DProxy:Stage3DProxy |
activateVertexNormalBuffer | () | method |
public function activateVertexNormalBuffer(index:int, stage3DProxy:Stage3DProxy):void
Parameters
index:int | |
stage3DProxy:Stage3DProxy |
activateVertexTangentBuffer | () | method |
public function activateVertexTangentBuffer(index:int, stage3DProxy:Stage3DProxy):void
Parameters
index:int | |
stage3DProxy:Stage3DProxy |
applyTransformation | () | method |
override public function applyTransformation(transform:Matrix3D):void
Parameters
transform:Matrix3D |
clone | () | method |
cloneWithSeperateBuffers | () | method |
createBuffer | () | method |
protected function createBuffer(contextIndex:int, context:Context3D):void
Parameters
contextIndex:int | |
context:Context3D |
dispose | () | method |
override public function dispose():void
disposeVertexBuffers | () | method |
override protected function disposeVertexBuffers(buffers:Vector.<VertexBuffer3D>):void
Parameters
buffers:Vector.<VertexBuffer3D> |
fromVectors | () | method |
public function fromVectors(verts:Vector.<Number>, uvs:Vector.<Number>, normals:Vector.<Number>, tangents:Vector.<Number>):void
Parameters
verts:Vector.<Number> | |
uvs:Vector.<Number> | |
normals:Vector.<Number> | |
tangents:Vector.<Number> |
invalidateBuffers | () | method |
override protected function invalidateBuffers(invalid:Vector.<Boolean>):void
Parameters
invalid:Vector.<Boolean> |
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 )
|
stripBuffer | () | method |
protected function stripBuffer(offset:int, numEntries:int):Vector.<Number>
Parameters
offset:int | |
numEntries:int |
Vector.<Number> |
updateActiveBuffer | () | method |
protected function updateActiveBuffer(contextIndex:int):void
Parameters
contextIndex:int |
updateData | () | method |
public function updateData(data:Vector.<Number>):void
Updates the vertex data. All vertex properties are contained in a single Vector, and the order is as follows: 0 - 2: vertex position X, Y, Z 3 - 5: normal X, Y, Z 6 - 8: tangent X, Y, Z 9 - 10: U V 11 - 12: Secondary U V
Parameters
data:Vector.<Number> |
updateVertexNormals | () | method |
override protected function updateVertexNormals(target:Vector.<Number>):Vector.<Number>
Parameters
target:Vector.<Number> |
Vector.<Number> |
updateVertexTangents | () | method |
override protected function updateVertexTangents(target:Vector.<Number>):Vector.<Number>
Parameters
target:Vector.<Number> |
Vector.<Number> |
uploadData | () | method |
protected function uploadData(contextIndex:int):void
Parameters
contextIndex:int |