DcelMeshModifyConvex Method (Int32, Single) |
Namespace: DigitalRune.Geometry.Meshes
Prerequisites: This operation uses UserData of the vertices and it assumes that the mesh is valid, convex and closed. All faces must be triangles or convex polygons.
The number of vertices in the convex mesh is reduced to the given vertexLimit. If this operation has to remove vertices, the mesh grows to a bigger convex mesh. The method tries to remove only the vertices with the least influence.
All faces are extruded along the normal by the given skin width. The skin width causes the convex mesh to grow (positive skin width) or shrink (negative skin width). The result is again convex.