Class Weld removes the vertices that can be shared from one or more meshes (smoothes the mesh surface when lighted).
Static variables
Constructor
Variables
Methods
apply(mesh:Mesh, keepUvs:Bool = true, normalAngleDegree:Float = 180, useNormalMode:String = USE_FACENORMALS, smoothNormals:Bool = true):Void
Perfoms a weld operation on a specified mesh geometry.
Parameters:
mesh | The mesh to weld |
|---|---|
keepUVs | If the uvs should be kept as defined. Default is true. |
normalAngleDegree | Threshold to compair the normals. Default is 180. |
useNormalMode | If the face normals or vertex normals are used for comparison. VERTEXNORMALS keeps intact the original data. Default uses USE_FACENORMALS. |
smoothNormals | Smooth. Default is true. |
applyToContainer(obj:ObjectContainer3D, keepUVs:Bool = true, normalAngleDegree:Float = 180, useNormalMode:String = USE_FACENORMALS, smoothNormals:Bool = true):Void
Perfoms a weld operation on all children Mesh object geometries of the specified ObjectContainer3D.
Parameters:
obj | The ObjectContainer3D to weld |
|---|---|
keepUVs | If the uvs should be kept as defined. Default is true. |
normalAngleDegree | Threshold to compair the normals. Default is 180. |
useNormalMode | If the face normals or vertex normals are used for comparison. VERTEXNORMALS keeps intact the original data. Default uses USE_FACENORMALS. |
smoothNormals | Smooth. Default is true. |