56#ifndef vtkRectilinearGridToTetrahedra_h
57#define vtkRectilinearGridToTetrahedra_h
60#define VTK_VOXEL_TO_12_TET 12
61#define VTK_VOXEL_TO_5_TET 5
62#define VTK_VOXEL_TO_6_TET 6
63#define VTK_VOXEL_TO_5_AND_12_TET -1
65#include "vtkFiltersGeneralModule.h"
67VTK_ABI_NAMESPACE_BEGIN
94 vtkSetMacro(TetraPerCell,
int);
95 vtkGetMacro(TetraPerCell,
int);
115 void SetInput(
const double Extent[3],
const double Spacing[3],
double tol = 0.001);
119 void SetInput(
double ExtentX,
double ExtentY,
double ExtentZ,
double SpacingX,
double SpacingY,
120 double SpacingZ,
double tol = 0.001);
158 static int TetrahedralizeVoxel(
165 static void TetrahedralizeAddCenterPoint(
vtkIdList* VoxelCorners,
vtkPoints* NodeList);
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()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
vtkTypeBool RememberVoxelId
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()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
void SetInput(double ExtentX, double ExtentY, double ExtentZ, double SpacingX, double SpacingY, double SpacingZ, double tol=0.001)
This version of the function for the wrappers.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkRectilinearGridToTetrahedra()
void SetInput(const double Extent[3], const double Spacing[3], double tol=0.001)
This function for convenience for creating a Rectilinear Grid If Spacing does not fit evenly into ext...
void SetTetraPerCellTo5()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
~vtkRectilinearGridToTetrahedra() override=default
void SetTetraPerCellTo12()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
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
#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