Back to list

Algo :: decimateTarget

Synopsis

   reduce the polygon count by collapsing some edges to obtain a target triangle count

GUI Dialog

   

Script function

   algo.decimateTarget(occurrences, TargetStrategy[, boundaryWeight[, normalWeight[, UVWeight[, sharpNormalWeight[, UVSeamWeight[, forbidUVFoldovers[, protectTopology]]]]]]])

Parameters

   occurrences (OccurrenceList) : List of occurrences to process
   TargetStrategy (DecimateOptionsSelector) : Select between targetCount or ratio to define the number of triangles left after the decimation process
   boundaryWeight (Double[optional] : Defines how important the edges defining the mesh boundaries (free edges) are during the decimation process, to preserve them from distortion
   normalWeight (Double[optional] : Defines how important vertex normals are during the decimation process, to preserve the smoothing of the mesh from being damaged
   UVWeight (Double[optional] : Defines how important UVs (texture coordinates) are during the decimation process, to preserve them from being distorted (along with the textures using the UVs)
   sharpNormalWeight (Double[optional] : Defines how important sharp edges (or hard edges) are during the decimation process, to preserve them from being distorted
   UVSeamWeight (Double[optional] : Defines how important UV seams (UV islands contours) are during the decimation process, to preserve them from being distorted (along with the textures using the UVs)
   forbidUVFoldovers (Boolean[optional] : Forbids UVs to fold over and overlap each other during the decimation
   protectTopology (Boolean[optional] : If False, the topology of the mesh can change and some edges can become non-manifold; but the visual quality will be better on model with complex topology