Packageaway3d.tools
Classpublic class Explode

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
Explode
  unicmeshes : Boolean
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(object3d:Object3D):Object3D
Apply the explode code to a given object3D
Explode
Property detail
recenterproperty
recenter:Boolean  [read-write]Implementation
    public function get recenter():Boolean
    public function set recenter(value:Boolean):void
unicmeshesproperty 
unicmeshes:Boolean  [read-write]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)Parameters
unicmeshes:Boolean (default = false) — unicmeshes [optional] Boolean. Defines if an isolated face becomes a unic Mesh objects or not. Default = false;
 
recenter:Boolean (default = false) — recenter [optional] Boolean. Defines if unicmeshes is true, if the unic meshes are recentered or not. Default = false;
Init Parameters
Method detail
apply()method
public function apply(object3d:Object3D):Object3D

Apply the explode code to a given object3D

Parameters
object3d: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.
Wiki link
Click to go to the wiki page for 'away3d.tools.Explode'

Code examples

Comments