vtkPolyhedron utilities
More...
#include <vtkPolyhedronUtilities.h>
vtkPolyhedron utilities
This class contains specific methods used to process vtkPolyhedron. These methods are intended to improve filters behavior over bad-shaped or degenerated polyhedrons (for example, non-planar ones).
- See also
- vtkPolyhedron
- Tests:
- vtkPolyhedronUtilities (Tests)
Definition at line 33 of file vtkPolyhedronUtilities.h.
◆ vtkPolyhedronUtilities()
◆ operator=()
◆ Decompose()
Decompose the input polyhedron into tetrahedrons.
This method will generate new points on each faces (faces barycenters) and another that is the barycenter of the cell. These new points are used to create the tetrahedrons and will lead to better result when applying filters (for example contours) on the output if the input polyhedron contains concave faces. The user can give point data and cell data to be passed through the decomposition. The point data on the new points (barycenters) correspond to the mean value of the respective data on the faces points. The point data on the barycenter of the cell correspond to the mean value of the respective data on all points. The cell data at given cellId will simply be copied to each output tetrahedron.
The documentation for this class was generated from the following file: