vtkRectilinearGridToTetrahedra

Section: Visualization Toolkit Graphics Classes

Usage

vtkRectilinearGridToTetrahedra forms a mesh of Tetrahedra from a vtkRectilinearGrid. The tetrahedra can be 5 per cell, 6 per cell, or a mixture of 5 or 12 per cell. The resulting mesh is consistent, meaning that there are no edge crossings and that each tetrahedron face is shared by two tetrahedra, except those tetrahedra on the boundary. All tetrahedra are right handed.

Note that 12 tetrahedra per cell means adding a point in the center of the cell.

In order to subdivide some cells into 5 and some cells into 12 tetrahedra: SetTetraPerCellTo5And12(); Set the Scalars of the Input RectilinearGrid to be 5 or 12 depending on what you want per cell of the RectilinearGrid.

If you set RememberVoxelId, the scalars of the tetrahedron will be set to the Id of the Cell in the RectilinearGrid from which the tetrahedron came.

.SECTION Thanks This class was developed by Samson J. Timoner of the MIT Artificial Intelligence Laboratory

To create an instance of class vtkRectilinearGridToTetrahedra, simply invoke its constructor as follows

  obj = vtkRectilinearGridToTetrahedra

Methods

The class vtkRectilinearGridToTetrahedra has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkRectilinearGridToTetrahedra class.