Go to the documentation of this file.
46 #ifndef vtkRectilinearGridToTetrahedra_h
47 #define vtkRectilinearGridToTetrahedra_h
50 #define VTK_VOXEL_TO_12_TET 12
51 #define VTK_VOXEL_TO_5_TET 5
52 #define VTK_VOXEL_TO_6_TET 6
53 #define VTK_VOXEL_TO_5_AND_12_TET -1
55 #include "vtkFiltersGeneralModule.h"
83 vtkSetMacro(TetraPerCell,
int);
84 vtkGetMacro(TetraPerCell,
int);
104 void SetInput(
const double Extent[3],
const double Spacing[3],
105 const double tol=0.001);
109 void SetInput(
const double ExtentX,
110 const double ExtentY,
111 const double ExtentZ,
112 const double SpacingX,
113 const double SpacingY,
114 const double SpacingZ,
115 const double tol=0.001);
139 const int &TetraPerCell);
146 const int &TetraPerCell,
147 const int &RememberVoxelId,
156 static int TetrahedralizeVoxel(
vtkIdList *VoxelCorners,
157 const int &DivisionType,
165 static inline void TetrahedralizeAddCenterPoint(
vtkIdList *VoxelCorners,
represent and manipulate 3D points
a dataset that is topologically regular with variable spacing in the three coordinate directions
create a Tetrahedral mesh from a RectilinearGrid
void SetTetraPerCellTo5And12()
void SetTetraPerCellTo12()
dynamic, self-adjusting array of signed char
#define VTK_VOXEL_TO_12_TET
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
a simple class to control print indentation
object to represent cell connectivity
list of point or cell ids
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
#define VTK_VOXEL_TO_5_TET
void SetTetraPerCellTo6()
static vtkUnstructuredGridAlgorithm * New()
#define VTK_VOXEL_TO_6_TET
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool RememberVoxelId
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types
~vtkRectilinearGridToTetrahedra() override
#define VTK_VOXEL_TO_5_AND_12_TET
void SetTetraPerCellTo5()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.