49#ifndef vtkRectilinearGridToTetrahedra_h
50#define vtkRectilinearGridToTetrahedra_h
53#define VTK_VOXEL_TO_12_TET 12
54#define VTK_VOXEL_TO_5_TET 5
55#define VTK_VOXEL_TO_6_TET 6
56#define VTK_VOXEL_TO_5_AND_12_TET -1
58#include "vtkFiltersGeneralModule.h"
87 vtkGetMacro(TetraPerCell,
int);
96 vtkGetMacro(RememberVoxelId,
int);
107 void SetInput(
const double Extent[3],
const double Spacing[3],
108 const double tol=0.001);
113 const double ExtentY,
114 const double ExtentZ,
115 const double SpacingX,
116 const double SpacingY,
117 const double SpacingZ,
118 const double tol=0.001);
142 const int &TetraPerCell);
149 const int &TetraPerCell,
150 const int &RememberVoxelId,
159 static int TetrahedralizeVoxel(
vtkIdList *VoxelCorners,
160 const int &DivisionType,
168 static inline void TetrahedralizeAddCenterPoint(
vtkIdList *VoxelCorners,
object to represent cell connectivity
list of point or cell ids
a simple class to control print indentation
represent and manipulate 3D points
create a Tetrahedral mesh from a RectilinearGrid
void SetTetraPerCellTo5And12()
~vtkRectilinearGridToTetrahedra() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkRectilinearGridToTetrahedra * New()
Form 5 Tetrahedra per cube.
void SetTetraPerCellTo6()
void 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 ext...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkRectilinearGridToTetrahedra()
void SetTetraPerCellTo5()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
void SetTetraPerCellTo12()
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
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)
This version of the function for the wrappers.
a dataset that is topologically regular with variable spacing in the three coordinate directions
dynamic, self-adjusting array of signed char
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_VOXEL_TO_12_TET
#define VTK_VOXEL_TO_5_TET
#define VTK_VOXEL_TO_6_TET
#define VTK_VOXEL_TO_5_AND_12_TET