VTK
|
create a Tetrahedral mesh from a RectilinearGrid More...
#include <vtkRectilinearGridToTetrahedra.h>
Inherits vtkUnstructuredGridAlgorithm.
Public Types | |
typedef vtkUnstructuredGridAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkRectilinearGridToTetrahedra * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetTetraPerCellTo5 () |
void | SetTetraPerCellTo6 () |
void | SetTetraPerCellTo12 () |
void | SetTetraPerCellTo5And12 () |
virtual void | SetTetraPerCell (int) |
virtual int | GetTetraPerCell () |
virtual void | SetRememberVoxelId (int) |
virtual int | GetRememberVoxelId () |
virtual void | RememberVoxelIdOn () |
virtual void | RememberVoxelIdOff () |
void | SetInput (const double Extent[3], const double Spacing[3], const double tol=0.001) |
void | SetInput (const double ExtentX, const double ExtentY, const double ExtentZ, const double SpacingX, const double SpacingY, const double SpacingZ, const double tol=0.001) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkRectilinearGridToTetrahedra * | SafeDownCast (vtkObjectBase *o) |
static vtkRectilinearGridToTetrahedra * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkRectilinearGridToTetrahedra () | |
~vtkRectilinearGridToTetrahedra () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | FillInputPortInformation (int, vtkInformation *) |
Protected Attributes | |
int | RememberVoxelId |
int | TetraPerCell |
create a Tetrahedral mesh from a RectilinearGrid
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.
Definition at line 65 of file vtkRectilinearGridToTetrahedra.h.
typedef vtkUnstructuredGridAlgorithm vtkRectilinearGridToTetrahedra::Superclass |
Definition at line 68 of file vtkRectilinearGridToTetrahedra.h.
|
protected |
|
inlineprotected |
Definition at line 115 of file vtkRectilinearGridToTetrahedra.h.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkRectilinearGridToTetrahedra* vtkRectilinearGridToTetrahedra::NewInstance | ( | ) | const |
void vtkRectilinearGridToTetrahedra::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
Form 5 Tetrahedra per cube. Do not RememberVoxelId.
|
inline |
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
Definition at line 77 of file vtkRectilinearGridToTetrahedra.h.
|
inline |
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
Definition at line 78 of file vtkRectilinearGridToTetrahedra.h.
|
inline |
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
Definition at line 79 of file vtkRectilinearGridToTetrahedra.h.
|
inline |
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
Definition at line 80 of file vtkRectilinearGridToTetrahedra.h.
|
virtual |
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
|
virtual |
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
|
virtual |
Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?
|
virtual |
Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?
|
virtual |
Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?
|
virtual |
Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?
void vtkRectilinearGridToTetrahedra::SetInput | ( | const double | Extent[3], |
const double | Spacing[3], | ||
const double | tol = 0.001 |
||
) |
This function for convenience for creating a Rectilinear Grid If Spacing does not fit evenly into extent, the last cell will have a different width (or height or depth). If Extent[i]/Spacing[i] is within tol of an integer, then assume the programmer meant an integer for direction i.
void vtkRectilinearGridToTetrahedra::SetInput | ( | const double | ExtentX, |
const double | ExtentY, | ||
const double | ExtentZ, | ||
const double | SpacingX, | ||
const double | SpacingY, | ||
const double | SpacingZ, | ||
const double | tol = 0.001 |
||
) |
This version of the function for the wrappers
|
protected |
|
protectedvirtual |
|
protected |
Definition at line 119 of file vtkRectilinearGridToTetrahedra.h.
|
protected |
Definition at line 120 of file vtkRectilinearGridToTetrahedra.h.