Packageaway3d.tools.commands
Classpublic class Weld
InheritanceWeld Inheritance Object

Class Weld removes the vertices that can be shared from one or more meshes (smoothes the mesh surface when lighted).



Public Properties
 PropertyDefined By
  verticesRemovedCount : uint
[static] [read-only] returns howmany vertices were deleted during the welding operation.
Weld
Public Methods
 MethodDefined By
  
apply(obj:ObjectContainer3D, keepUVs:Boolean = true, keepNormals:Boolean = true):void
[static] Apply the welding code to a given ObjectContainer3D.
Weld
Property Detail
verticesRemovedCountproperty
verticesRemovedCount:uint  [read-only]

returns howmany vertices were deleted during the welding operation.


Implementation
    public static function get verticesRemovedCount():uint
Method Detail
apply()method
public static function apply(obj:ObjectContainer3D, keepUVs:Boolean = true, keepNormals:Boolean = true):void

Apply the welding code to a given ObjectContainer3D.

Parameters

obj:ObjectContainer3D — ObjectContainer3D. The target Object3d object.
 
keepUVs:Boolean (default = true) — [otional]Boolean. If true the existing UV-mapping is not be altered by the welding operation, possibly adding extra data. Default is true.
 
keepNormals:Boolean (default = true) — [otional]Boolean. If true normals of shared vertices will be averaged. If false autoDeriveVertexNormals will be set to true. Default is true.