PvDecimate#

class polpo.preprocessing.mesh.decimation.PvDecimate(target_reduction, volume_preservation=False, attribute_error=False, scalars=True, vectors=True, normals=False, tcoords=True, tensors=True, scalars_weight=0.1, vectors_weight=0.1, normals_weight=0.1, tcoords_weight=0.1, tensors_weight=0.1, inplace=False, progress_bar=False, keep_colors=True)[source]#

Bases: PreprocessingStep

Reduce the number of triangles in a triangular mesh.

Uses vtkQuadricDecimation.

https://docs.pyvista.org/api/core/_autosummary/pyvista.polydatafilters.decimate#pyvista.PolyDataFilters.decimate

apply(poly_data)[source]#

Apply step.