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
  verticesAddedCount : uint
[read-only] returns howmany vertices were added during the welding operation.
Weld
  verticesRemovedCount : uint
[read-only] returns howmany vertices were deleted during the welding operation.
Weld
Public Methods
 MethodDefined By
  
Weld
  
apply(mesh:Mesh, keepUvs:Boolean = true, normalAngleDegree:Number = 180, useNormalMode:String, smoothNormals:Boolean = true):void
Perfoms a weld operation on a specified mesh geometry.
Weld
  
applyToContainer(obj:ObjectContainer3D, keepUVs:Boolean = true, normalAngleDegree:Number = 180, useNormalMode:String, smoothNormals:Boolean = true):void
Perfoms a weld operation on all children Mesh object geometries of the specified ObjectContainer3D.
Weld
Public Constants
 ConstantDefined By
  USE_FACENORMALS : String = UseFaceNormals
[static]
Weld
  USE_VERTEXNORMALS : String = UseVertexNormals
[static]
Weld
Property Detail
verticesAddedCountproperty
verticesAddedCount:uint  [read-only]

returns howmany vertices were added during the welding operation.


Implementation
    public function get verticesAddedCount():uint
verticesRemovedCountproperty 
verticesRemovedCount:uint  [read-only]

returns howmany vertices were deleted during the welding operation.


Implementation
    public function get verticesRemovedCount():uint
Constructor Detail
Weld()Constructor
public function Weld()



Method Detail
apply()method
public function apply(mesh:Mesh, keepUvs:Boolean = true, normalAngleDegree:Number = 180, useNormalMode:String, smoothNormals:Boolean = true):void

Perfoms a weld operation on a specified mesh geometry.

Parameters

mesh:Mesh — The mesh to weld
 
keepUvs:Boolean (default = true) — If the uvs should be kept as defined. Default is true.
 
normalAngleDegree:Number (default = 180) — Threshold to compair the normals. Default is 180.
 
useNormalMode:String (default = NaN) — If the face normals or vertex normals are used for comparison. VERTEXNORMALS keeps intact the original data. Default uses USE_FACENORMALS.
 
smoothNormals:Boolean (default = true) — Smooth. Default is true.

applyToContainer()method 
public function applyToContainer(obj:ObjectContainer3D, keepUVs:Boolean = true, normalAngleDegree:Number = 180, useNormalMode:String, smoothNormals:Boolean = true):void

Perfoms a weld operation on all children Mesh object geometries of the specified ObjectContainer3D.

Parameters

obj:ObjectContainer3D — The ObjectContainer3D to weld
 
keepUVs:Boolean (default = true) — If the uvs should be kept as defined. Default is true.
 
normalAngleDegree:Number (default = 180) — Threshold to compair the normals. Default is 180.
 
useNormalMode:String (default = NaN) — If the face normals or vertex normals are used for comparison. VERTEXNORMALS keeps intact the original data. Default uses USE_FACENORMALS.
 
smoothNormals:Boolean (default = true) — Smooth. Default is true.

Constant Detail
USE_FACENORMALSConstant
public static const USE_FACENORMALS:String = UseFaceNormals

USE_VERTEXNORMALSConstant 
public static const USE_VERTEXNORMALS:String = UseVertexNormals