Packageaway3d.core.base
Interfacepublic interface ISubGeometry
Implementors CompactSubGeometry, SubGeometry



Public Properties
 PropertyDefined By
  autoDeriveVertexNormals : Boolean
ISubGeometry
  autoDeriveVertexTangents : Boolean
ISubGeometry
  faceNormals : Vector.<Number>
[read-only]
ISubGeometry
  indexData : Vector.<uint>
[read-only] Retrieves the object's indices as a uint array.
ISubGeometry
  numTriangles : uint
[read-only] The amount of triangles that comprise the IRenderable geometry.
ISubGeometry
  numVertices : uint
[read-only] The total amount of vertices in the SubGeometry.
ISubGeometry
  parentGeometry : Geometry
ISubGeometry
  scaleU : Number
[read-only]
ISubGeometry
  scaleV : Number
[read-only]
ISubGeometry
  secondaryUVOffset : int
[read-only] The offset into SecondaryUVData vector where the UVs are placed
ISubGeometry
  secondaryUVStride : uint
[read-only] The distance between two secondary UV elements
ISubGeometry
  UVData : Vector.<Number>
[read-only] Retrieves the object's uvs as a Number array.
ISubGeometry
  UVOffset : int
[read-only] The offset into UVData vector where the UVs are placed
ISubGeometry
  UVStride : uint
[read-only] The distance between two consecutive UV elements
ISubGeometry
  vertexData : Vector.<Number>
[read-only] Retrieves the object's vertices as a Number array.
ISubGeometry
  vertexNormalData : Vector.<Number>
[read-only] Retrieves the object's normals as a Number array.
ISubGeometry
  vertexNormalOffset : int
[read-only] The offset into vertexNormalData where the normals are placed
ISubGeometry
  vertexNormalStride : uint
[read-only] The distance between two consecutive normal elements This always applies to vertices, normals and tangents.
ISubGeometry
  vertexOffset : int
[read-only] The offset into vertexData where the vertices are placed
ISubGeometry
  vertexStride : uint
[read-only] The distance between two consecutive vertex, normal or tangent elements This always applies to vertices, normals and tangents.
ISubGeometry
  vertexTangentData : Vector.<Number>
[read-only] Retrieves the object's tangents as a Number array.
ISubGeometry
  vertexTangentOffset : int
[read-only] The offset into vertexTangentData where the tangents are placed
ISubGeometry
  vertexTangentStride : uint
[read-only] The distance between two consecutive tangent elements This always applies to vertices, normals and tangents.
ISubGeometry
Public Methods
 MethodDefined By
  
activateSecondaryUVBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for a secondary set of UV coordinates
ISubGeometry
  
activateUVBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for UV coordinates
ISubGeometry
  
activateVertexBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for vertex positions.
ISubGeometry
  
activateVertexNormalBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for vertex normals
ISubGeometry
  
activateVertexTangentBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for vertex tangents
ISubGeometry
  
applyTransformation(transform:Matrix3D):void
ISubGeometry
  
ISubGeometry
  
ISubGeometry
  
dispose():void
ISubGeometry
  
fromVectors(vertices:Vector.<Number>, uvs:Vector.<Number>, normals:Vector.<Number>, tangents:Vector.<Number>):void
ISubGeometry
  
getIndexBuffer(stage3DProxy:Stage3DProxy):IndexBuffer3D
Retrieves the IndexBuffer3D object that contains triangle indices.
ISubGeometry
  
scale(scale:Number):void
ISubGeometry
  
scaleUV(scaleU:Number = 1, scaleV:Number = 1):void
ISubGeometry
Property Detail
autoDeriveVertexNormalsproperty
autoDeriveVertexNormals:Boolean


Implementation
    public function get autoDeriveVertexNormals():Boolean
    public function set autoDeriveVertexNormals(value:Boolean):void
autoDeriveVertexTangentsproperty 
autoDeriveVertexTangents:Boolean


Implementation
    public function get autoDeriveVertexTangents():Boolean
    public function set autoDeriveVertexTangents(value:Boolean):void
faceNormalsproperty 
faceNormals:Vector.<Number>  [read-only]


Implementation
    public function get faceNormals():Vector.<Number>
indexDataproperty 
indexData:Vector.<uint>  [read-only]

Retrieves the object's indices as a uint array.


Implementation
    public function get indexData():Vector.<uint>
numTrianglesproperty 
numTriangles:uint  [read-only]

The amount of triangles that comprise the IRenderable geometry.


Implementation
    public function get numTriangles():uint
numVerticesproperty 
numVertices:uint  [read-only]

The total amount of vertices in the SubGeometry.


Implementation
    public function get numVertices():uint
parentGeometryproperty 
parentGeometry:Geometry


Implementation
    public function get parentGeometry():Geometry
    public function set parentGeometry(value:Geometry):void
scaleUproperty 
scaleU:Number  [read-only]


Implementation
    public function get scaleU():Number
scaleVproperty 
scaleV:Number  [read-only]


Implementation
    public function get scaleV():Number
secondaryUVOffsetproperty 
secondaryUVOffset:int  [read-only]

The offset into SecondaryUVData vector where the UVs are placed


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

The distance between two secondary UV elements


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

Retrieves the object's uvs as a Number array.


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

The offset into UVData vector where the UVs are placed


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

The distance between two consecutive UV elements


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

Retrieves the object's vertices as a Number array.


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

Retrieves the object's normals as a Number array.


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

The offset into vertexNormalData where the normals are placed


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

The distance between two consecutive normal elements This always applies to vertices, normals and tangents.


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

The offset into vertexData where the vertices are placed


Implementation
    public function get vertexOffset():int
vertexStrideproperty 
vertexStride:uint  [read-only]

The distance between two consecutive vertex, normal or tangent elements This always applies to vertices, normals and tangents.


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

Retrieves the object's tangents as a Number array.


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

The offset into vertexTangentData where the tangents are placed


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

The distance between two consecutive tangent elements This always applies to vertices, normals and tangents.


Implementation
    public function get vertexTangentStride():uint
Method Detail
activateSecondaryUVBuffer()method
public function activateSecondaryUVBuffer(index:int, stage3DProxy:Stage3DProxy):void

Assigns 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):void

Assigns 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):void

Assigns 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):void

Assigns the attribute stream for vertex normals

Parameters

index:int — The attribute stream index for the vertex shader
 
stage3DProxy:Stage3DProxy — The Stage3DProxy to assign the stream to

activateVertexTangentBuffer()method 
public function activateVertexTangentBuffer(index:int, stage3DProxy:Stage3DProxy):void

Assigns the attribute stream for vertex tangents

Parameters

index:int — The attribute stream index for the vertex shader
 
stage3DProxy:Stage3DProxy — The Stage3DProxy to assign the stream to

applyTransformation()method 
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
dispose()method 
public function dispose():void

fromVectors()method 
public function fromVectors(vertices:Vector.<Number>, uvs:Vector.<Number>, normals:Vector.<Number>, tangents:Vector.<Number>):void

Parameters

vertices:Vector.<Number>
 
uvs:Vector.<Number>
 
normals:Vector.<Number>
 
tangents:Vector.<Number>

getIndexBuffer()method 
public function getIndexBuffer(stage3DProxy:Stage3DProxy):IndexBuffer3D

Retrieves the IndexBuffer3D object that contains triangle indices.

Parameters

stage3DProxy:Stage3DProxy — The Context3D for which we request the buffer

Returns
IndexBuffer3D — The VertexBuffer3D object that contains triangle indices.
scale()method 
public function scale(scale:Number):void

Parameters

scale:Number

scaleUV()method 
public function scaleUV(scaleU:Number = 1, scaleV:Number = 1):void

Parameters

scaleU:Number (default = 1)
 
scaleV:Number (default = 1)