Python Script Engine  9.0
GL Studio Editor Python Script API
GlsPolygonOptimizer.i File Reference

Functions

GLTriMesh * OptimizePolygon (GLPolygon *poly, int granuleSize=16, int fillThreshold=2) noexcept(false)
 

Function Documentation

◆ OptimizePolygon()

GLTriMesh * OptimizePolygon ( GLPolygon *  poly,
int  granuleSize = 16,
int  fillThreshold = 2 
)
noexcept

Optimze a polygon.

Parameters
polyThe polygon to optimize
granuleSizeGranule size
fillThresholdFill threshold
Returns
A GLTriMesh that is an optimized version of the original polygon
Exceptions
CEIException