Click or drag to resize

MeshReduce Method (Int32, Boolean, Int32, Boolean)

Reduce polygon count

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
public bool Reduce(
	int desiredPolygonCount,
	bool allowDistortion,
	int accuracy,
	bool normalizeSize


Type: SystemInt32
desired or target number of faces
Type: SystemBoolean
If true mesh appearance is not changed even if the target polygon count is not reached
Type: SystemInt32
Integer from 1 to 10 telling how accurate reduction algorithm to use. Greater number gives more accurate results
Type: SystemBoolean
If true mesh is fitted to an axis aligned unit cube until reduction is complete

Return Value

Type: Boolean
True if mesh is successfully reduced and false if mesh could not be reduced for some reason.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also