Rhino 5 for Windows
Reduce polygon count
Namespace: Rhino.GeometryAssembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.30000.17 (5.13.60913.21340)
Syntaxpublic bool Reduce(
int desiredPolygonCount,
bool allowDistortion,
int accuracy,
bool normalizeSize
)
Public Function Reduce (
desiredPolygonCount As Integer,
allowDistortion As Boolean,
accuracy As Integer,
normalizeSize As Boolean
) As Boolean
Parameters
- desiredPolygonCount
- Type: SystemInt32
desired or target number of faces - allowDistortion
- Type: SystemBoolean
If true mesh appearance is not changed even if the target polygon count is not reached
- accuracy
- Type: SystemInt32
Integer from 1 to 10 telling how accurate reduction algorithm
to use. Greater number gives more accurate results
- normalizeSize
- Type: SystemBoolean
If true mesh is fitted to an axis aligned unit cube until reduction is complete
Return Value
Type:
BooleanTrue if mesh is successfully reduced and false if mesh could not be reduced for some reason.
See Also