TrimeshDecimator#

class polpo.preprocessing.mesh.decimation.TrimeshDecimator(percent=None, face_count=None, agression=None)[source]#

Bases: PreprocessingStep

Trimesh simplify quadratic decimation.

Parameters:
  • percent (float) – A number between 0.0 and 1.0 for how much.

  • face_count (int) – Target number of faces desired in the resulting mesh.

  • agression (int) – An integer between 0 and 10, the scale being roughly 0 is “slow and good” and 10 being “fast and bad.”

apply(mesh)[source]#

Apply step.