openalea.phenomenal.mesh.algorithms.decimation
- openalea.phenomenal.mesh.algorithms.decimation(vtk_poly_data, reduction=0.95, verbose=False)[source]
Call of vtkQuadricDecimation on a vtk_poly_data to decimate the mesh
- Parameters:
vtk_poly_data (vtkPolyData) – vtkPolyData is a data object that is a concrete implementation of vtkDataSet. vtkPolyData represents a geometric structure consisting of vertices, lines, polygons, and/or triangle strips. Point and cell attribute values (e.g., scalars, vectors, etc.) also are represented.
reduction (float, optional) – Percentage of reduction for the decimation 0.95 will reduce the vtk_poly_date of 95%
verbose (bool, optional) – If True, print for some information of each part of the algorithms
- Returns:
out – vtkPolyData is a data object that is a concrete implementation of vtkDataSet. vtkPolyData represents a geometric structure consisting of vertices, lines, polygons, and/or triangle strips. Point and cell attribute values (e.g., scalars, vectors, etc.)
- Return type:
vtkPolyData