TriangleMeshShape.Invalidate Method (Int32, Boolean) |
Namespace: DigitalRune.Geometry.Shapes
Exception | Condition |
---|---|
ArgumentOutOfRangeException | triangleIndex is out of range. |
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 true. 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 false.