- reduceGeometry (tol)
- tol—float (range[0,1] )Controls the number of vertices which are going to be removed from the geometry. For instance, a value of 0.2 will reduce the vertex count of the geometry by 20%.
The reduceGeometry operation simplifies the geometry by applying a series of edge collapses. The algorithm tries to reduce the complexity of the mesh by introducing the least possible delta to the appearance of the existing model.
Reducing a terrain
The picture below shows a shaded terrain mesh. Left: the original (16384 vertices, 16129 faces). Right: after reduceGeometry(0.8) (3276 vertices, 5066 faces).
Closeup of the terrain meshes from the previous picture. Left original, right reduced.