TriangleMesh3D
| Kind of class: | public class |
|---|---|
| Package: | org.papervision3d.core.geom |
| Inherits from: | Vertices3D < DisplayObject3D < DisplayObjectContainer3D < EventDispatcher |
| Known subclasses: | |
| Classpath: | org.papervision3d.core.geom.TriangleMesh3D |
| File last modified: | Sunday, 02 March 2008, 15:23:39 |
The Mesh3D class lets you create and display solid 3D objects made of vertices and triangular polygons.
Summary
Constructor
- TriangleMesh3D (material:MaterialObject3D, vertices:Array, faces:Array, name:String = null, initObject:Object = null)
- Creates a new Mesh object.
Namespaces
Constants
Constants inherited from DisplayObject3D
Class properties
Class properties inherited from DisplayObject3D
Instance properties
Instance properties inherited from DisplayObject3D
_containerBlendMode _containerSortMode _filters _material _rotationDirty _rotationX _rotationY _rotationZ _scaleDirty _scaleX _scaleY _scaleZ _scene _sorted _transformDirty _useOwnContainer _userData containerBlendMode containerSortMode culled extra faces filters geometry id material materials meshSort name parent rotationX rotationY rotationZ scale scaleX scaleY scaleZ scene sceneX sceneY sceneZ screen screenZ transform useOwnContainer userData view visible world x y z
Instance properties inherited from DisplayObjectContainer3D
Instance methods
- project (parent:DisplayObject3D) : Number
- Projects three dimensional coordinates onto a two dimensional plane to simulate the relationship of the camera to subject.
- projectTexture (u:String = "x", v:String = "y") : void
- Planar projection from the specified plane.
- quarterFaces : void
- Divides all faces into 4.
- mergeVertices : void
- Merges duplicated vertices.
Instance methods inherited from Vertices3D
Instance methods inherited from DisplayObject3D
Instance methods inherited from DisplayObjectContainer3D
Constructor
TriangleMesh3D
public function TriangleMesh3D (
material:MaterialObject3D,
vertices:Array,
faces:Array,
name:String = null,
initObject:Object = null)
Creates a new Mesh object.
The Mesh DisplayObject3D class lets you create and display solid 3D objects made of vertices and triangular polygons.
The Mesh DisplayObject3D class lets you create and display solid 3D objects made of vertices and triangular polygons.
Parameters:
material :
A MaterialObject3D object that contains the material properties of the object.
vertices :
An array of Vertex3D objects for the vertices of the mesh.
faces :
An array of Face3D objects for the faces of the mesh.
initObject:
[optional] - An object that contains user defined properties with which to populate the newly created DisplayObject3D.It includes x, y, z, rotationX, rotationY, rotationZ, scaleX, scaleY scaleZ and a user defined extra object.If extra is not an object, it is ignored. All properties of the extra field are copied into the new instance. The properties specified with extra are publicly available.
- sortFaces: Z-depth sorting when rendering. Some objects might not need it. Default is false (faster).
- showFaces: Use only if each face is on a separate MovieClip container. Default is false.
Instance methods
mergeVertices
public function mergeVertices (
) : void
Merges duplicated vertices.
project
override public function project (
parent:DisplayObject3D,
renderSessionData:RenderSessionData) : Number
Projects three dimensional coordinates onto a two dimensional plane to simulate the relationship of the camera to subject.
This is the first step in the process of representing three dimensional shapes two dimensionally.
This is the first step in the process of representing three dimensional shapes two dimensionally.
Overrides:
projectTexture
public function projectTexture (
u:String = "x",
v:String = "y") : void
Planar projection from the specified plane.
Parameters:
u:
The texture horizontal axis. Can be "x", "y" or "z". The default value is "x".
v:
The texture vertical axis. Can be "x", "y" or "z". The default value is "y".
quarterFaces
public function quarterFaces (
) : void
Divides all faces into 4.