Click or drag to resize
DigitalRuneTriangleMeshAdd Method (Triangle, Boolean, Single, Boolean)
Adds the triangle.

Namespace: DigitalRune.Geometry.Meshes
Assembly: 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
)

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
ExceptionCondition
ArgumentOutOfRangeExceptionvertexPositionTolerance is negative or 0.
See Also