Packageaway3d.tools
Classpublic class Explode
InheritanceExplode Inheritance Object

Class Explode corrects all the faces of an object3d with unic vertexes.Explode Each faces can then be moved independently without influence for the surrounding faces.



Public Properties
 PropertyDefined By
  recenter : Boolean
if unicmeshes is true, defines if the unic meshes are recentered or not.
Explode
  unicmeshes : Boolean
Defines if an isolated face becomes a unic Mesh objects or not.
Explode
Public Methods
 MethodDefined By
  
Explode(unicmeshes:Boolean = false, recenter:Boolean = false)
Class Explode corrects all the faces of an object3d with unic vertexes.
Explode
  
Apply the explode code to a given object3D
Explode
Property Detail
recenterproperty
recenter:Boolean

if unicmeshes is true, defines if the unic meshes are recentered or not. Default = false;


Implementation
    public function get recenter():Boolean
    public function set recenter(value:Boolean):void
unicmeshesproperty 
unicmeshes:Boolean

Defines if an isolated face becomes a unic Mesh objects or not. Class default = false;


Implementation
    public function get unicmeshes():Boolean
    public function set unicmeshes(value:Boolean):void
Constructor Detail
Explode()Constructor
public function Explode(unicmeshes:Boolean = false, recenter:Boolean = false)

Class Explode corrects all the faces of an object3d with unic vertexes. Explode Each faces can then be moved independently without influence for the surrounding faces.

Parameters
unicmeshes:Boolean (default = false) — [optional] Boolean. Defines if an isolated face becomes a unic Mesh objects or not. Default = false;
 
recenter:Boolean (default = false) — [optional] Boolean. Defines if unicmeshes is true, if the unic meshes are recentered or not. Default = false;
####INIT####
Method Detail
apply()method
public function apply(object3d:Object3D):Object3D

Apply the explode code to a given object3D

Parameters

object3d:Object3D — Object3D. The target Object3d object.

Returns
Object3D — Object3D if unicmeshes, returns an ObjectContainer3D with all the unic meshes in it, or the original object3d affected by the explode code.