Packageaway3d.core.base
Classpublic class CompactSubGeometry
InheritanceCompactSubGeometry Inheritance SubGeometryBase Inheritance Object
Implements ISubGeometry
Subclasses SkinnedSubGeometry



Public Properties
 PropertyDefined By
 InheritedautoDeriveVertexNormals : Boolean
True if the vertex normals should be derived from the geometry, false if the vertex normals are set explicitly.
SubGeometryBase
 InheritedautoDeriveVertexTangents : Boolean
True if the vertex tangents should be derived from the geometry, false if the vertex normals are set explicitly.
SubGeometryBase
 InheritedautoGenerateDummyUVs : Boolean
Defines whether a UV buffer should be automatically generated to contain dummy UV coordinates.
SubGeometryBase
 InheritednumTriangles : uint
[read-only] The total amount of triangles in the SubGeometry.
SubGeometryBase
  numVertices : uint
[read-only]
CompactSubGeometry
 InheritedparentGeometry : Geometry
SubGeometryBase
 InheritedscaleU : Number
[read-only] Scales the uv coordinates
SubGeometryBase
 InheritedscaleV : Number
[read-only]
SubGeometryBase
  secondaryUVOffset : int
[read-only]
CompactSubGeometry
  secondaryUVStride : uint
[read-only]
CompactSubGeometry
 InheriteduseFaceWeights : 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
  vertexPositionData : Vector.<Number>
[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
Protected Properties
 PropertyDefined By
  _activeBuffer : VertexBuffer3D
CompactSubGeometry
  _activeContext : Context3D
CompactSubGeometry
  _activeDataInvalid : Boolean
CompactSubGeometry
 Inherited_autoDeriveVertexNormals : Boolean = true
SubGeometryBase
 Inherited_autoDeriveVertexTangents : Boolean = true
SubGeometryBase
 Inherited_autoGenerateUVs : Boolean = false
SubGeometryBase
  _bufferContext : Vector.<Context3D>
CompactSubGeometry
  _contextIndex : int
CompactSubGeometry
 Inherited_faceNormals : Vector.<Number>
SubGeometryBase
 Inherited_faceNormalsDirty : Boolean = true
SubGeometryBase
 Inherited_faceTangents : Vector.<Number>
SubGeometryBase
 Inherited_faceTangentsDirty : Boolean = true
SubGeometryBase
 Inherited_faceWeights : Vector.<Number>
SubGeometryBase
 Inherited_indexBuffer : Vector.<IndexBuffer3D>
SubGeometryBase
 Inherited_indexBufferContext : Vector.<Context3D>
SubGeometryBase
 Inherited_indices : Vector.<uint>
SubGeometryBase
 Inherited_indicesInvalid : Vector.<Boolean>
SubGeometryBase
 Inherited_numIndices : uint
SubGeometryBase
 Inherited_numTriangles : uint
SubGeometryBase
  _numVertices : uint
CompactSubGeometry
 Inherited_uvsDirty : Boolean = true
SubGeometryBase
  _vertexBuffer : Vector.<VertexBuffer3D>
CompactSubGeometry
 Inherited_vertexData : Vector.<Number>
SubGeometryBase
  _vertexDataInvalid : Vector.<Boolean>
CompactSubGeometry
 Inherited_vertexNormalsDirty : Boolean = true
SubGeometryBase
 Inherited_vertexTangentsDirty : Boolean = true
SubGeometryBase
Public Methods
 MethodDefined 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
 Inherited
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
 Inherited
updateIndexData(indices:Vector.<uint>):void
Updates the face indices of the SubGeometry.
SubGeometryBase
Protected Methods
 MethodDefined By
  
createBuffer(contextIndex:int, context:Context3D):void
CompactSubGeometry
 Inherited
disposeIndexBuffers(buffers:Vector.<IndexBuffer3D>):void
Disposes all buffers in a given vector.
SubGeometryBase
  
disposeVertexBuffers(buffers:Vector.<VertexBuffer3D>):void
[override]
CompactSubGeometry
 Inherited
SubGeometryBase
  
invalidateBuffers(invalid:Vector.<Boolean>):void
[override]
CompactSubGeometry
  
stripBuffer(offset:int, numEntries:int):Vector.<Number>
CompactSubGeometry
  
updateActiveBuffer(contextIndex:int):void
CompactSubGeometry
 Inherited
updateDummyUVs(target:Vector.<Number>):Vector.<Number>
SubGeometryBase
 Inherited
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
Property Detail
_activeBufferproperty
protected var _activeBuffer:VertexBuffer3D

_activeContextproperty 
protected var _activeContext:Context3D

_activeDataInvalidproperty 
protected var _activeDataInvalid:Boolean

_bufferContextproperty 
protected var _bufferContext:Vector.<Context3D>

_contextIndexproperty 
protected var _contextIndex:int

_numVerticesproperty 
protected var _numVertices:uint

_vertexBufferproperty 
protected var _vertexBuffer:Vector.<VertexBuffer3D>

_vertexDataInvalidproperty 
protected var _vertexDataInvalid:Vector.<Boolean>

numVerticesproperty 
numVertices:uint  [read-only]


Implementation
    public function get numVertices():uint
secondaryUVOffsetproperty 
secondaryUVOffset:int  [read-only]


Implementation
    public function get secondaryUVOffset():int
secondaryUVStrideproperty 
secondaryUVStride:uint  [read-only]


Implementation
    public function get secondaryUVStride():uint
UVDataproperty 
UVData:Vector.<Number>  [read-only] [override]


Implementation
    public function get UVData():Vector.<Number>
UVOffsetproperty 
UVOffset:int  [read-only] [override]


Implementation
    public function get UVOffset():int
UVStrideproperty 
UVStride:uint  [read-only] [override]


Implementation
    public function get UVStride():uint
vertexDataproperty 
vertexData:Vector.<Number>  [read-only] [override]


Implementation
    public function get vertexData():Vector.<Number>
vertexNormalDataproperty 
vertexNormalData:Vector.<Number>  [read-only] [override]


Implementation
    public function get vertexNormalData():Vector.<Number>
vertexNormalOffsetproperty 
vertexNormalOffset:int  [read-only] [override]


Implementation
    public function get vertexNormalOffset():int
vertexNormalStrideproperty 
vertexNormalStride:uint  [read-only] [override]


Implementation
    public function get vertexNormalStride():uint
vertexOffsetproperty 
vertexOffset:int  [read-only] [override]


Implementation
    public function get vertexOffset():int
vertexPositionDataproperty 
vertexPositionData:Vector.<Number>  [read-only] [override]


Implementation
    public function get vertexPositionData():Vector.<Number>
vertexStrideproperty 
vertexStride:uint  [read-only] [override]


Implementation
    public function get vertexStride():uint
vertexTangentDataproperty 
vertexTangentData:Vector.<Number>  [read-only] [override]


Implementation
    public function get vertexTangentData():Vector.<Number>
vertexTangentOffsetproperty 
vertexTangentOffset:int  [read-only] [override]


Implementation
    public function get vertexTangentOffset():int
vertexTangentStrideproperty 
vertexTangentStride:uint  [read-only] [override]


Implementation
    public function get vertexTangentStride():uint
Constructor Detail
CompactSubGeometry()Constructor
public function CompactSubGeometry()



Method Detail
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 
public function clone():ISubGeometry

Returns
ISubGeometry
cloneWithSeperateBuffers()method 
public function cloneWithSeperateBuffers():SubGeometry

Returns
SubGeometry
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

Returns
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>

Returns
Vector.<Number>
updateVertexTangents()method 
override protected function updateVertexTangents(target:Vector.<Number>):Vector.<Number>

Parameters

target:Vector.<Number>

Returns
Vector.<Number>
uploadData()method 
protected function uploadData(contextIndex:int):void

Parameters

contextIndex:int