duplicate:Boolean Implementation public function get duplicate():Boolean public function set duplicate(value:Boolean):voidrecenter:Boolean Implementation public function get recenter():Boolean public function set recenter(value:Boolean):voidpublic 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 = centerpublic static const MAX_BOUND:String = maxpublic static const MIN_BOUND:String = minpublic static const X_AXIS:int = 1public static const Y_AXIS:int = 2public static const Z_AXIS:int = 4
Tue May 7 2013, 10:42 PM +01:00