| Package | org.papervision3d.core.geom.renderables |
| Class | public class Triangle3D |
| Inheritance | Triangle3D AbstractRenderable |
| Implements | IRenderable |
| Property | Defined by | ||
|---|---|---|---|
| face3DInstance : Triangle3DInstance
The transformed Face3DInstance
| Triangle3D | ||
| faceNormal : Number3D
The face normal
| Triangle3D | ||
| id : Number
[read-only] Unique id of this instance.
| Triangle3D | ||
![]() | instance : DisplayObject3D | AbstractRenderable | |
| material : MaterialObject3D
The do3d instance this triangle belongs too.
| Triangle3D | ||
| _materialName : String
A material id TODO
| Triangle3D | ||
| renderCommand : RenderTriangle | Triangle3D | ||
| screenZ : Number
[read-only] The average depth (z coordinate) of the transformed triangle.
| Triangle3D | ||
![]() | _userData : UserData | AbstractRenderable | |
![]() | userData : UserData | AbstractRenderable | |
| uv : Array | Triangle3D | ||
| uv0 : NumberUV
A MaterialObject3D object that contains the material properties of the back of a single sided triangle.
| Triangle3D | ||
| uv1 : NumberUV | Triangle3D | ||
| uv2 : NumberUV | Triangle3D | ||
| _uvArray : Array | Triangle3D | ||
| v0 : Vertex3D
Used to store references to the vertices.
| Triangle3D | ||
| v1 : Vertex3D | Triangle3D | ||
| v2 : Vertex3D | Triangle3D | ||
| vertices : Array
An array of Vertex3D objects for the three vertices of the triangle.
| Triangle3D | ||
| visible : Boolean
[read-only] A Boolean value that indicates that the face is visible, i.e.
| Triangle3D | ||
| Method | Defined by | ||
|---|---|---|---|
|
Triangle3D(do3dInstance:DisplayObject3D, vertices:Array, material:MaterialObject3D = null, uv:Array = null)
The Face3D constructor lets you create linear textured or solid colour triangles.
| Triangle3D | ||
|
createNormal():void
| Triangle3D | ||
| Triangle3D | |||
|
updateVertices():void
| Triangle3D | ||
| face3DInstance | property |
public var face3DInstance:Triangle3DInstanceThe transformed Face3DInstance
| faceNormal | property |
public var faceNormal:Number3DThe face normal
| id | property |
public var id:Number[read-only] Unique id of this instance.
| material | property |
public var material:MaterialObject3DThe do3d instance this triangle belongs too.
| _materialName | property |
public var _materialName:StringA material id TODO
| renderCommand | property |
public var renderCommand:RenderTriangle
| screenZ | property |
public var screenZ:Number[read-only] The average depth (z coordinate) of the transformed triangle. Also known as the distance from the camera. Used internally for z-sorting.
| uv | property |
uv:Array [read-write]Implementation
public function get uv():Array
public function set uv(value:Array):void
| uv0 | property |
public var uv0:NumberUVA MaterialObject3D object that contains the material properties of the back of a single sided triangle.
| uv1 | property |
public var uv1:NumberUV
| uv2 | property |
public var uv2:NumberUV
| _uvArray | property |
public var _uvArray:Array
| v0 | property |
public var v0:Vertex3DUsed to store references to the vertices.
| v1 | property |
public var v1:Vertex3D
| v2 | property |
public var v2:Vertex3D
| vertices | property |
public var vertices:ArrayAn array of Vertex3D objects for the three vertices of the triangle.
| visible | property |
public var visible:Boolean[read-only] A Boolean value that indicates that the face is visible, i.e. it's vertices are in front of the camera.
| Triangle3D | () | constructor |
public function Triangle3D(do3dInstance:DisplayObject3D, vertices:Array, material:MaterialObject3D = null, uv:Array = null)The Face3D constructor lets you create linear textured or solid colour triangles.
Parametersdo3dInstance:DisplayObject3D — An array of Vertex3D objects for the three vertices of the triangle.
|
|
vertices:Array — A MaterialObject3D object that contains the material properties of the triangle.
|
|
material:MaterialObject3D (default = null) — An array of {x,y} objects for the corresponding UV pixel coordinates of each triangle vertex.
|
|
uv:Array (default = null) |
| createNormal | () | method |
public function createNormal():void
| getRenderListItem | () | method |
| updateVertices | () | method |
public function updateVertices():void