Package | away3d.tools.commands |
Class | public class Weld |
Inheritance | Weld Object |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
Weld() | 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 |
Constant | Defined By | ||
---|---|---|---|
USE_FACENORMALS : String = UseFaceNormals [static] | Weld | ||
USE_VERTEXNORMALS : String = UseVertexNormals [static] | Weld |
verticesAddedCount | property |
verticesAddedCount:uint
[read-only] returns howmany vertices were added during the welding operation.
public function get verticesAddedCount():uint
verticesRemovedCount | property |
verticesRemovedCount:uint
[read-only] returns howmany vertices were deleted during the welding operation.
public function get verticesRemovedCount():uint
Weld | () | Constructor |
public function Weld()
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.
|
USE_FACENORMALS | Constant |
public static const USE_FACENORMALS:String = UseFaceNormals
USE_VERTEXNORMALS | Constant |
public static const USE_VERTEXNORMALS:String = UseVertexNormals