Package | org.papervision3d.objects.special |
Class | public class Skin3D |
Inheritance | Skin3D ![]() ![]() ![]() ![]() ![]() |
Method | Defined by | ||
---|---|---|---|
Skin3D(material:MaterialObject3D, vertices:Array, faces:Array, name:String = null)
| Skin3D | ||
![]() |
Adds a child DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObject3D | |
![]() |
Adds all the children of a DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObjectContainer3D | |
![]() | DisplayObject3D | ||
![]() |
addGeometry(geometry:GeometryObject3D = null):void
Adds a geometry definition to the instance.
| DisplayObject3D | |
![]() |
boundingBox():Object
Calculates 3D bounding box.
| Vertices3D | |
![]() |
calculateScreenCoords(camera:CameraObject3D):void
| DisplayObject3D | |
![]() |
childrenList():String
Returns a string value with the list of objects.
| DisplayObjectContainer3D | |
![]() |
Clones this object.
| TriangleMesh3D | |
![]() |
copyPosition(reference:*):void
Copies the position information (x, y and z coordinates) from another object or Matrix3D.
| DisplayObject3D | |
![]() |
copyTransform(reference:*):void
Copies the transformation information (position, rotation and scale) from another object or Matrix3D.
| DisplayObject3D | |
![]() |
createRenderTriangle(face:Triangle3D, material:MaterialObject3D, v0:Vertex3DInstance, v1:Vertex3DInstance, v2:Vertex3DInstance, uv0:NumberUV, uv1:NumberUV, uv2:NumberUV):RenderTriangle
| TriangleMesh3D | |
![]() | DisplayObject3D | ||
![]() |
distanceTo(obj:DisplayObject3D):Number
Gets the distance to the position of the given object.
| DisplayObject3D | |
![]() |
getChildByName(name:String, recursive:Boolean = false):DisplayObject3D
Returns the child display object that exists with the specified name.
| DisplayObjectContainer3D | |
![]() |
getMaterialByName(name:String):MaterialObject3D
Returns the material that exists with the specified name in the materials list.
| DisplayObject3D | |
![]() |
hitTestObject(obj:DisplayObject3D, multiplier:Number = 1):Boolean
Evaluates the display object to see if it overlaps or intersects with the obj display object.
| DisplayObject3D | |
![]() |
hitTestPoint(x:Number, y:Number, z:Number):Boolean
Evaluates the display object to see if it overlaps or intersects with the point specified by the x, y and z parameters.
| DisplayObject3D | |
![]() |
Make the object look at a specific position.
| DisplayObject3D | |
![]() |
materialsList():String
Returns a string value with the list of material names of the materials list.
| DisplayObject3D | |
![]() |
mergeVertices():void
Merges duplicated vertices.
| TriangleMesh3D | |
![]() |
moveBackward(distance:Number):void
Translate the display object in the opposite direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveDown(distance:Number):void
Translate the display object downwards, with respect to the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveForward(distance:Number):void
Translate the display object in the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveLeft(distance:Number):void
Translate the display object lateraly, to the left of the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveRight(distance:Number):void
Translate the display object lateraly, to the right of the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveUp(distance:Number):void
Translate the display object upwards, with respect to the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
pitch(angle:Number):void
Rotate the display object around its lateral or transverse axis —an axis running from the pilot's left to right in piloted aircraft, and parallel to the wings of a winged aircraft; thus the nose pitches up and the tail down, or vice-versa.
| DisplayObject3D | |
Skin3D | |||
![]() | Vertices3D | ||
![]() |
| Vertices3D | |
![]() |
projectTexture(u:String = "x", v:String = "y"):void
Planar projection from the specified plane.
| TriangleMesh3D | |
![]() |
quarterFaces():void
Divides all faces into 4.
| TriangleMesh3D | |
![]() |
Removes the specified child DisplayObject3D instance from the child list of the DisplayObjectContainer3D instance.
| DisplayObjectContainer3D | |
![]() |
removeChildByName(name:String):DisplayObject3D
Removes the child DisplayObject3D instance that exists with the specified name, from the child list of the DisplayObjectContainer3D instance.
| DisplayObjectContainer3D | |
![]() |
replaceMaterialByName(material:MaterialObject3D, name:String):void
Replaces a material by its name.
| DisplayObject3D | |
![]() |
roll(angle:Number):void
Rotate the display object around the longitudinal axis —an axis drawn through the body of the vehicle from tail to nose in the normal direction of flight, or the direction the object is facing.
| DisplayObject3D | |
![]() |
setChildMaterial(child:DisplayObject3D, material:MaterialObject3D, existingMaterial:MaterialObject3D = null):void
Sets the material for a child DisplayObject3D.
| DisplayObject3D | |
![]() |
setChildMaterialByName(childName:String, material:MaterialObject3D):void
Sets the material for a child DisplayObject3D by the child's name.
| DisplayObject3D | |
![]() |
toString():String
Returns a string value representing the three-dimensional position values of the display object instance.
| DisplayObject3D | |
![]() |
transformVertices(transformation:Matrix3D):void
| Vertices3D | |
![]() |
Move the object along a given direction.
| DisplayObject3D | |
![]() |
updateTransform():void
[internal-use] Updates the transform Matrix3D with the current rotation and scale values.
| DisplayObject3D | |
![]() |
yaw(angle:Number):void
Rotate the display object around about the vertical axis —an axis drawn from top to bottom.
| DisplayObject3D |
Skin3D | () | constructor |
public function Skin3D(material:MaterialObject3D, vertices:Array, faces:Array, name:String = null)
Parameters
material:MaterialObject3D |
|
vertices:Array |
|
faces:Array |
|
name:String (default = null )
|
project | () | method |
public override function project(parent:DisplayObject3D, renderSessionData:RenderSessionData):Number
Parameters
parent:DisplayObject3D |
|
renderSessionData:RenderSessionData |
Number |