wrap.decimate¶
-
wrap.
decimate
(geomSource, targetPolygonCount, preserveTexCoords = True)¶ Decimate geometry down to targetPolygonCount polygons.
Parameters: geom :
wrap.Geom
Geometry to decimate
targetPolygonCount : int
Desired number of polygons. It should be not greater that
geom.nPolygons
. To decimate to specific percentage use:targetPolygonCount = geom.nPolygons * percentage
preserveTexCoords : bool, optional
If True the returned model will preserve UV-coordinates so that you can apply the same texture that was applied to geom. However that will prevent some edges of the mesh from collapsing that might lead to produce more irregular mesh. Defaults to True.
Returns: result :
wrap.Geom
Returns new geometry with number of polygons >= targetPolygonCount.