Vertices3D

Kind of class:public class
Package:org.papervision3d.core.geom
Inherits from:DisplayObject3D < DisplayObjectContainer3D < EventDispatcher
Known subclasses:
Classpath:org.papervision3d.core.geom.Vertices3D
File last modified:Sunday, 02 March 2008, 15:23:39
The Vertices3D class lets you create and manipulate groups of vertices.

Summary


Constructor
  • Vertices3D (vertices:Array, name:String = null, initObject:Object = null)
    • Creates a new Points object.
Instance methods

Constructor

Vertices3D

public function Vertices3D (
vertices:Array, name:String = null, initObject:Object = null)

Creates a new Points object.

The Points GeometryObject3D class lets you create and manipulate groups of vertices.
Parameters:
vertices :
An array of Vertex3D objects for the vertices of the mesh.
initObject:
[optional] - An object that contains user defined properties with which to populate the newly created GeometryObject3D.

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.

Instance methods

boundingBox

public function boundingBox (
) : Object

Calculates 3D bounding box.
Returns:
  • {minX, maxX, minY, maxY, minZ, maxZ}

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.
Parameters:
camera :
Camera.
parent :
The DisplayObject3D object that contains this display object.
#
renderSessionData:
Data for the current render.
#

projectFrustum

public function projectFrustum (
parent:DisplayObject3D, renderSessionData:RenderSessionData) : Number

Parameters:
parent:
 
camera:
 
sorted:
 

transformVertices

public function transformVertices (
transformation:Matrix3D) : void