class DelaunayMesh
package away3d.extrusions
extends Mesh › Entity › ObjectContainer3D › Object3D › NamedAssetBase
Available on all platforms
Static variables
Constructor
@:value({ smoothSurface : true, flip : false, centerMesh : false, plane : PLANE_XZ })new(material:MaterialBase, vectors:Vector<Vector3D>, plane:String = PLANE_XZ, centerMesh:Bool = false, flip:Bool = false, smoothSurface:Bool = true)
Variables
Inherited Variables
Defined by Mesh
Defined by Entity
Defined by ObjectContainer3D
Defined by Object3D
Defined by NamedAssetBase
Inherited Methods
Defined by Mesh
clearAnimationGeometry():Void
Clears the animation geometry of this mesh. It will cause animation to generate a new animation geometry. Work only when shareAnimationGeometry is false.
clone():Mesh
Clones this Mesh instance along with all it's children, while re-using the same material, geometry and animation set. The returned result will be a copy of this mesh, containing copies of all of it's children.
Properties that are re-used (i.e. not cloned) by the new copy include name, geometry, and material. Properties that are cloned or created anew for the copy include subMeshes, children of the mesh, and the animator.
If you want to copy just the mesh, reusing it's geometry and material while not cloning it's children, the simplest way is to create a new mesh manually:
var clone : Mesh = new Mesh(original.geometry, original.material);
disposeWithAnimatorAndChildren():Void
Disposes mesh including the animator and children. This is a merely a convenience method. @return
Defined by Entity
getEntityPartitionNode():EntityNode
Gets a concrete EntityPartition3DNode subclass that is associated with this Entity instance
Defined by ObjectContainer3D
addChild(child:ObjectContainer3D):ObjectContainer3D
Adds a child ObjectContainer3D to the current object. The child's transformation will become relative to the current object's transformation.
Parameters:
child | The object to be added as a child. |
|---|
Returns:
A reference to the added child object.
addChildren(childarray:Vector<ObjectContainer3D>):Void
Adds an array of 3d objects to the scene as children of the container
Parameters:
...childarray | An array of 3d objects to be added |
|---|
disposeWithChildren():Void
Disposes the current ObjectContainer3D including all of its children. This is a merely a convenience method.
getChildAt(index:Int):ObjectContainer3D
Retrieves the child object at the given index.
Parameters:
index | The index of the object to be retrieved. |
|---|
Returns:
The child object at the given index.
removeChild(child:ObjectContainer3D):Void
Removes a 3d object from the child array of the container
Parameters:
child | The 3d object to be removed |
|---|
Throws:
Error | ObjectContainer3D.removeChild(null) |
|---|
removeChildAt(index:Int):Void
Removes a 3d object from the child array of the container
Parameters:
index | Index of 3d object to be removed |
|---|
Defined by Object3D
@:value({ v : null })getPosition(?v:Vector3D):Vector3D
Defines the position of the 3d object, relative to the local coordinates of the parent ObjectContainer3D.
@return
Parameters:
v | the destination Vector3D |
|---|
moveBackward(distance:Float):Void
Moves the 3d object backwards along it's local z axis
Parameters:
distance | The length of the movement |
|---|
moveDown(distance:Float):Void
Moves the 3d object backwards along it's local y axis
Parameters:
distance | The length of the movement |
|---|
moveForward(distance:Float):Void
Moves the 3d object forwards along it's local z axis
Parameters:
distance | The length of the movement |
|---|
moveLeft(distance:Float):Void
Moves the 3d object backwards along it's local x axis
Parameters:
distance | The length of the movement |
|---|
movePivot(dx:Float, dy:Float, dz:Float):Void
Moves the local point around which the object rotates.
Parameters:
dx | The amount of movement along the local x axis. |
|---|---|
dy | The amount of movement along the local y axis. |
dz | The amount of movement along the local z axis. |
moveRight(distance:Float):Void
Moves the 3d object forwards along it's local x axis
Parameters:
distance | The length of the movement |
|---|
moveTo(dx:Float, dy:Float, dz:Float):Void
Moves the 3d object directly to a point in space
Parameters:
dx | The amount of movement along the local x axis. |
|---|---|
dy | The amount of movement along the local y axis. |
dz | The amount of movement along the local z axis. |
moveUp(distance:Float):Void
Moves the 3d object forwards along it's local y axis
Parameters:
distance | The length of the movement |
|---|
pitch(angle:Float):Void
Rotates the 3d object around it's local x-axis
Parameters:
angle | The amount of rotation in degrees |
|---|
roll(angle:Float):Void
Rotates the 3d object around it's local z-axis
Parameters:
angle | The amount of rotation in degrees |
|---|
rotateTo(ax:Float, ay:Float, az:Float):Void
Rotates the 3d object directly to a euler angle
Parameters:
ax | The angle in degrees of the rotation around the x axis. |
|---|---|
ay | The angle in degrees of the rotation around the y axis. |
az | The angle in degrees of the rotation around the z axis. |
scale(value:Float):Void
Appends a uniform scale to the current transformation.
Parameters:
value | The amount by which to scale. |
|---|
translate(axis:Vector3D, distance:Float):Void
Moves the 3d object along a vector by a defined length
Parameters:
axis | The vector defining the axis of movement |
|---|---|
distance | The length of the movement |
yaw(angle:Float):Void
Rotates the 3d object around it's local y-axis
Parameters:
angle | The amount of rotation in degrees |
|---|