duplicate:Boolean
Implementation public function get duplicate():Boolean
public function set duplicate(value:Boolean):void
recenter:Boolean
Implementation public function get recenter():Boolean
public function set recenter(value:Boolean):void
public function Mirror(recenter:Boolean = false, duplicate:Boolean = true)
Parameters | recenter:Boolean (default = false )
|
|
| duplicate:Boolean (default = true )
|
public function apply(mesh:Mesh, axis:int, offset:String, additionalOffset:Number = 0):void
Mirror a Mesh along a given Axis.
Parameters
| mesh:Mesh — the mesh to mirror.
|
|
| axis:int — the axis to mirror the mesh.
|
|
| offset:String (default = NaN ) — can be MIN_BOUND, MAX_BOUND or CENTER.
|
|
| additionalOffset:Number (default = 0 ) — if MIN_BOUND or MAX_BOUND is selected as offset, this addional offset can be added.
|
public function applyToContainer(ctr:ObjectContainer3D, axis:int, offset:String, additionalOffset:Number = 0):void
Mirror a ObjectContainer3d, and all its children along a given Axis.
Parameters
| ctr:ObjectContainer3D — the ObjectContainer3d to mirror.
|
|
| axis:int — the axis to mirror the ObjectContainer3d.
|
|
| offset:String (default = NaN ) — can be MIN_BOUND, MAX_BOUND or CENTER.
|
|
| additionalOffset:Number (default = 0 ) — if MIN_BOUND or MAX_BOUND is selected as offset, this addional offset can be added.
|
public function getMirroredClone(mesh:Mesh, axis:int, offset:String, additionalOffset:Number = 0):Mesh
Clones a Mesh and mirrors the cloned mesh. returns the cloned (and mirrored) mesh.
Parameters
| mesh:Mesh — the mesh to clone and mirror.
|
|
| axis:int — the axis to mirror the mesh.
|
|
| offset:String (default = NaN ) — can be MIN_BOUND, MAX_BOUND or CENTER.
|
|
| additionalOffset:Number (default = 0 ) — if MIN_BOUND or MAX_BOUND is selected as offset, this addional offset can be added.
|
Returns public function getMirroredCloneContainer(ctr:ObjectContainer3D, axis:int, offset:String, additionalOffset:Number = 0):ObjectContainer3D
Clones a ObjectContainer3D and all its children and mirrors the cloned Objects. returns the cloned (and mirrored) ObjectContainer3D.
Parameters
| ctr:ObjectContainer3D — the ObjectContainer3D to clone and mirror.
|
|
| axis:int — the axis to mirror the ObjectContainer3D.
|
|
| offset:String (default = NaN ) — can be MIN_BOUND, MAX_BOUND or CENTER.
|
|
| additionalOffset:Number (default = 0 ) — if MIN_BOUND or MAX_BOUND is selected as offset, this additional offset can be added.
|
Returnspublic static const CENTER:String = center
public static const MAX_BOUND:String = max
public static const MIN_BOUND:String = min
public static const X_AXIS:int = 1
public static const Y_AXIS:int = 2
public static const Z_AXIS:int = 4
Thu Jul 11 2013, 08:55 PM +01:00