Packageaway3d.tools
Classpublic class Merge

Class Merge merges two meshes into one.Merge

Public Properties
 PropertyDefined by
  keepmaterial : Boolean
[write-only] Defines if mesh2 will be merged using its own material information.
Merge
  keepMaterial : Boolean
[read-only]
Merge
  objectspace : Boolean
Merge
  unicgeometry : Boolean
Merge
Public Methods
 MethodDefined by
  
Merge
(objectspace:Boolean = true, unicgeometry:Boolean = false, keepMaterial:Boolean = false)
Merge
  
apply(mesh1:Mesh, mesh2:Mesh):void
Merges two meshes into one.
Merge
Property detail
keepmaterialproperty
keepmaterial:Boolean  [write-only]

Defines if mesh2 will be merged using its own material information.

Implementation
    public function set keepmaterial(value:Boolean):void
keepMaterialproperty 
keepMaterial:Boolean  [read-only]Implementation
    public function get keepMaterial():Boolean
objectspaceproperty 
objectspace:Boolean  [read-write]Implementation
    public function get objectspace():Boolean
    public function set objectspace(value:Boolean):void
unicgeometryproperty 
unicgeometry:Boolean  [read-write]Implementation
    public function get unicgeometry():Boolean
    public function set unicgeometry(value:Boolean):void
Constructor detail
Merge()constructor
public function Merge(objectspace:Boolean = true, unicgeometry:Boolean = false, keepMaterial:Boolean = false)Parameters
objectspace:Boolean (default = true) — objectspace [optional] Boolean. Defines if mesh2 is merge using its objectspace or worldspace. Default is true.
 
unicgeometry:Boolean (default = false) — unicgeometry [optional] Boolean. Defines if the receiver object must generate new vertexes, uv's or uses mesh2's. Default is false.
 
keepMaterial:Boolean (default = false) — keepMaterial [optional] Boolean. Defines if the receiver object must use the mesh2 material information. If false the merge information from mesh2 gets the mesh1 material. Default is false.
Init Parameters
Method detail
apply()method
public function apply(mesh1:Mesh, mesh2:Mesh):void

Merges two meshes into one.

Parameters
mesh1:Mesh — mesh1 Mesh. The receiver object that will hold both meshes information.
 
mesh2:Mesh — mesh2 Mesh. The Mesh object to be merge with mesh1.
Wiki link
Click to go to the wiki page for 'away3d.tools.Merge'

Code examples

Comments