Static variables

@:value("center")staticinlineread onlyCENTER:String = "center"

@:value("max")staticinlineread onlyMAX_BOUND:String = "max"

@:value("min")staticinlineread onlyMIN_BOUND:String = "min"

@:value(1)staticinlineread onlyX_AXIS:Int = 1

@:value(2)staticinlineread onlyY_AXIS:Int = 2

@:value(4)staticinlineread onlyZ_AXIS:Int = 4

Constructor

@:value({ duplicate : true, recenter : false })new(recenter:Bool = false, duplicate:Bool = true)

Variables

Methods

@:value({ additionalOffset : 0, offset : CENTER })apply(mesh:Mesh, axis:Int, offset:String = CENTER, additionalOffset:Float = 0):Void

Mirror a Mesh along a given Axis.

Parameters:

mesh

the mesh to mirror.

axis

the axis to mirror the mesh.

offset

can be MIN_BOUND, MAX_BOUND or CENTER.

additionalOffset

if MIN_BOUND or MAX_BOUND is selected as offset, this addional offset can be added.

@:value({ additionalOffset : 0, offset : CENTER })applyToContainer(ctr:ObjectContainer3D, axis:Int, offset:String = CENTER, additionalOffset:Float = 0):Void

Mirror a ObjectContainer3d, and all its children along a given Axis.

Parameters:

ctr

the ObjectContainer3d to mirror.

axis

the axis to mirror the ObjectContainer3d.

offset

can be MIN_BOUND, MAX_BOUND or CENTER.

additionalOffset

if MIN_BOUND or MAX_BOUND is selected as offset, this addional offset can be added.

@:value({ additionalOffset : 0, offset : CENTER })getMirroredClone(mesh:Mesh, axis:Int, offset:String = CENTER, additionalOffset:Float = 0):Mesh

Clones a Mesh and mirrors the cloned mesh. returns the cloned (and mirrored) mesh.

Parameters:

mesh

the mesh to clone and mirror.

axis

the axis to mirror the mesh.

offset

can be MIN_BOUND, MAX_BOUND or CENTER.

additionalOffset

if MIN_BOUND or MAX_BOUND is selected as offset, this addional offset can be added.

@:value({ additionalOffset : 0, offset : CENTER })getMirroredCloneContainer(ctr:ObjectContainer3D, axis:Int, offset:String = CENTER, additionalOffset:Float = 0):ObjectContainer3D

Clones a ObjectContainer3D and all its children and mirrors the cloned Objects. returns the cloned (and mirrored) ObjectContainer3D.

Parameters:

mesh

the ObjectContainer3D to clone and mirror.

axis

the axis to mirror the ObjectContainer3D.

offset

can be MIN_BOUND, MAX_BOUND or CENTER.

additionalOffset

if MIN_BOUND or MAX_BOUND is selected as offset, this additional offset can be added.