| TriangleMeshAdd Method (Triangle, Boolean, Single, Boolean) |
Adds the triangle.
Namespace: DigitalRune.Geometry.MeshesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public void Add(
Triangle triangle,
bool weldVerticesBruteForce,
float vertexPositionTolerance,
bool removeDegenerateTriangles
)
Public Sub Add (
triangle As Triangle,
weldVerticesBruteForce As Boolean,
vertexPositionTolerance As Single,
removeDegenerateTriangles As Boolean
)
public:
void Add(
Triangle triangle,
bool weldVerticesBruteForce,
float vertexPositionTolerance,
bool removeDegenerateTriangles
)
member Add :
triangle : Triangle *
weldVerticesBruteForce : bool *
vertexPositionTolerance : float32 *
removeDegenerateTriangles : bool -> unit
Parameters
- triangle
- Type: DigitalRune.Geometry.ShapesTriangle
The triangle. - weldVerticesBruteForce
- Type: SystemBoolean
If set to , vertex welding is performed. A brute-force method is used
for welding which can be very slow for large triangle meshes. For large meshes it is
recommended to call WeldVertices after all triangles have been added.
- vertexPositionTolerance
- Type: SystemSingle
The vertex position tolerance. If the vertex positions are within this range, they are
treated as identical vertices. This value is used for vertex welding and to decide if a
triangle is degenerate.
- removeDegenerateTriangles
- Type: SystemBoolean
If set to degenerate triangles will not be added to the mesh.
Exceptions See Also