API Reference > FacetModeler Namespace > Classes > Body Class > Body Methods > Body::simplify Method
Body::simplify Method
Syntax
C++
void simplify(double param);
Parameters 
Description 
double param 
[in] Simplification percent if positive, or tolerance if negative. 

Reduces the number of primitives (vertices and faces). 

 

All the faces will be converted to triangles first. The result will contain the number of triangles according to given percent (for example, 10% of initial number). If param is negative, then the resulting body will contain the minimum number of triangles to match the given max deviation from initial mesh.

Copyright © 2002-2020. Open Design Alliance. All rights reserved.