| Package | away3d.core.base |
| Class | public class SubMesh |
| Inheritance | SubMesh Object |
| Implements | IRenderable |
See also
| Property | Defined By | ||
|---|---|---|---|
| animationSubGeometry : AnimationSubGeometry | SubMesh | ||
| animator : IAnimator [read-only]
The animator object that provides the state for the SubMesh's animation. | SubMesh | ||
| animatorSubGeometry : AnimationSubGeometry | SubMesh | ||
| bounds : BoundingVolumeBase [read-only] | SubMesh | ||
| castsShadows : Boolean [read-only] | SubMesh | ||
| indexData : Vector.<uint> [read-only] | SubMesh | ||
| inverseSceneTransform : Matrix3D [read-only]
The inverse scene transform object that transforms from world to model space. | SubMesh | ||
| material : MaterialBase
The material used to render the current SubMesh. | SubMesh | ||
| mouseEnabled : Boolean [read-only]
Indicates whether the SubMesh should trigger mouse events, and hence should be rendered for hit testing. | SubMesh | ||
| numTriangles : uint [read-only]
The amount of triangles that make up this SubMesh. | SubMesh | ||
| numVertices : uint [read-only] | SubMesh | ||
| offsetU : Number | SubMesh | ||
| offsetV : Number | SubMesh | ||
| scaleU : Number | SubMesh | ||
| scaleV : Number | SubMesh | ||
| sceneTransform : Matrix3D [read-only]
The scene transform object that transforms from model to world space. | SubMesh | ||
| shaderPickingDetails : Boolean [read-only] | SubMesh | ||
| sourceEntity : Entity [read-only]
The entity that that initially provided the IRenderable to the render pipeline (ie: the owning Mesh object). | SubMesh | ||
| subGeometry : ISubGeometry
The SubGeometry object which provides the geometry data for this SubMesh. | SubMesh | ||
| UVData : Vector.<Number> [read-only] | SubMesh | ||
| UVOffset : uint [read-only] | SubMesh | ||
| uvRotation : Number | SubMesh | ||
| UVStride : uint [read-only] | SubMesh | ||
| uvTransform : Matrix [read-only] | SubMesh | ||
| vertexData : Vector.<Number> [read-only] | SubMesh | ||
| vertexNormalData : Vector.<Number> [read-only] | SubMesh | ||
| vertexNormalOffset : uint [read-only] | SubMesh | ||
| vertexOffset : uint [read-only] | SubMesh | ||
| vertexStride : uint [read-only] | SubMesh | ||
| vertexTangentData : Vector.<Number> [read-only] | SubMesh | ||
| vertexTangentOffset : uint [read-only] | SubMesh | ||
| visible : Boolean [read-only] | SubMesh | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new SubMesh object
| SubMesh | ||
activateSecondaryUVBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for a secondary set of UV coordinates
| SubMesh | ||
activateUVBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for UV coordinates
| SubMesh | ||
activateVertexBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for vertex positions. | SubMesh | ||
activateVertexNormalBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for vertex normals
| SubMesh | ||
activateVertexTangentBuffer(index:int, stage3DProxy:Stage3DProxy):void
Assigns the attribute stream for vertex tangents
| SubMesh | ||
dispose():void | SubMesh | ||
getIndexBuffer(stage3DProxy:Stage3DProxy):IndexBuffer3D
Retrieves the IndexBuffer3D object that contains triangle indices. | SubMesh | ||
getRenderSceneTransform(camera:Camera3D):Matrix3D | SubMesh | ||
| _index | property |
arcane var _index:uint| _material | property |
arcane var _material:MaterialBase| animationSubGeometry | property |
public var animationSubGeometry:AnimationSubGeometry| animator | property |
animator:IAnimator [read-only] The animator object that provides the state for the SubMesh's animation.
public function get animator():IAnimator| animatorSubGeometry | property |
public var animatorSubGeometry:AnimationSubGeometry| bounds | property |
bounds:BoundingVolumeBase [read-only] public function get bounds():BoundingVolumeBase| castsShadows | property |
castsShadows:Boolean [read-only] public function get castsShadows():Boolean| indexData | property |
indexData:Vector.<uint> [read-only] public function get indexData():Vector.<uint>| inverseSceneTransform | property |
inverseSceneTransform:Matrix3D [read-only] The inverse scene transform object that transforms from world to model space.
public function get inverseSceneTransform():Matrix3D| material | property |
material:MaterialBaseThe material used to render the current SubMesh. If set to null, its parent Mesh's material will be used instead.
public function get material():MaterialBase public function set material(value:MaterialBase):void| mouseEnabled | property |
mouseEnabled:Boolean [read-only] Indicates whether the SubMesh should trigger mouse events, and hence should be rendered for hit testing.
public function get mouseEnabled():Boolean| numTriangles | property |
numTriangles:uint [read-only] The amount of triangles that make up this SubMesh.
public function get numTriangles():uint| numVertices | property |
numVertices:uint [read-only] public function get numVertices():uint| offsetU | property |
offsetU:Number public function get offsetU():Number public function set offsetU(value:Number):void| offsetV | property |
offsetV:Number public function get offsetV():Number public function set offsetV(value:Number):void| parentMesh | property |
parentMesh:Mesh arcane function get parentMesh():Mesh arcane function set parentMesh(value:Mesh):void| scaleU | property |
scaleU:Number public function get scaleU():Number public function set scaleU(value:Number):void| scaleV | property |
scaleV:Number public function get scaleV():Number public function set scaleV(value:Number):void| sceneTransform | property |
sceneTransform:Matrix3D [read-only] The scene transform object that transforms from model to world space.
public function get sceneTransform():Matrix3D| shaderPickingDetails | property |
shaderPickingDetails:Boolean [read-only] public function get shaderPickingDetails():Boolean| sourceEntity | property |
sourceEntity:Entity [read-only] The entity that that initially provided the IRenderable to the render pipeline (ie: the owning Mesh object).
public function get sourceEntity():Entity| subGeometry | property |
subGeometry:ISubGeometryThe SubGeometry object which provides the geometry data for this SubMesh.
public function get subGeometry():ISubGeometry public function set subGeometry(value:ISubGeometry):void| UVData | property |
UVData:Vector.<Number> [read-only] public function get UVData():Vector.<Number>| UVOffset | property |
UVOffset:uint [read-only] public function get UVOffset():uint| uvRotation | property |
uvRotation:Number public function get uvRotation():Number public function set uvRotation(value:Number):void| UVStride | property |
UVStride:uint [read-only] public function get UVStride():uint| uvTransform | property |
uvTransform:Matrix [read-only] public function get uvTransform():Matrix| vertexData | property |
vertexData:Vector.<Number> [read-only] public function get vertexData():Vector.<Number>| vertexNormalData | property |
vertexNormalData:Vector.<Number> [read-only] public function get vertexNormalData():Vector.<Number>| vertexNormalOffset | property |
vertexNormalOffset:uint [read-only] public function get vertexNormalOffset():uint| vertexOffset | property |
vertexOffset:uint [read-only] public function get vertexOffset():uint| vertexStride | property |
vertexStride:uint [read-only] public function get vertexStride():uint| vertexTangentData | property |
vertexTangentData:Vector.<Number> [read-only] public function get vertexTangentData():Vector.<Number>| vertexTangentOffset | property |
vertexTangentOffset:uint [read-only] public function get vertexTangentOffset():uint| visible | property |
visible:Boolean [read-only] public function get visible():Boolean| SubMesh | () | Constructor |
public function SubMesh(subGeometry:ISubGeometry, parentMesh:Mesh, material:MaterialBase = null)Creates a new SubMesh object
ParameterssubGeometry:ISubGeometry — The SubGeometry object which provides the geometry data for this SubMesh.
| |
parentMesh:Mesh — The Mesh object to which this SubMesh belongs.
| |
material:MaterialBase (default = null) — An optional material used to render this SubMesh.
|
| 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):voidAssigns 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):voidAssigns 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
|
| dispose | () | method |
public function dispose():void| getIndexBuffer | () | method |
public function getIndexBuffer(stage3DProxy:Stage3DProxy):IndexBuffer3DRetrieves the IndexBuffer3D object that contains triangle indices.
Parameters
stage3DProxy:Stage3DProxy — The Context3D for which we request the buffer
|
IndexBuffer3D — The VertexBuffer3D object that contains triangle indices.
|
| getRenderSceneTransform | () | method |
public function getRenderSceneTransform(camera:Camera3D):Matrix3DParameters
camera:Camera3D |
Matrix3D |