Click or drag to resize
DigitalRuneTriangleMeshShapeInvalidate Method (Int32, Boolean)
Invalidates the whole triangle mesh or a single triangle.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public void Invalidate(
	int triangleIndex,
	bool invalidateTopology
)

Parameters

triangleIndex
Type: SystemInt32
Index of the triangle. Can be -1 to invalidate the whole mesh.
invalidateTopology
Type: SystemBoolean
If set to the mesh topology is invalidated.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptiontriangleIndex is out of range.
Remarks

This method must be called if the position of a triangle stored in Mesh is changed. This method updates the Partition and raises the Changed event by calling OnChanged(ShapeChangedEventArgs).

If the mesh topology has changed, invalidateTopology must be set to . The topology has changed if triangle neighbor relationships have changed. If each triangle has the same neighbor triangles as before and only the vertices were moved, invalidateTopology can be .

See Also