Go to the documentation of this file.
88 #ifndef vtkOrderedTriangulator_h
89 #define vtkOrderedTriangulator_h
91 #include "vtkCommonDataModelModule.h"
103 struct vtkOTTemplates;
109 #if VTK_SIZEOF_SHORT == 4
110 typedef unsigned short TemplateIDType;
111 #elif VTK_SIZEOF_INT == 4
112 typedef unsigned int TemplateIDType;
113 #elif VTK_SIZEOF_LONG == 4
114 typedef unsigned long TemplateIDType;
138 double zmin,
double zmax,
int numPts);
159 double p[3],
int type);
161 double x[3],
double p[3],
int type);
213 vtkGetMacro(NumberOfPoints,
int);
225 vtkGetMacro(UseTemplates,
int);
237 vtkGetMacro(PreSorted,
int);
247 vtkGetMacro(UseTwoSortIds,
int);
354 int MaximumNumberOfPoints;
362 int NumberOfCellPoints;
363 int NumberOfCellEdges;
365 vtkOTTemplates *Templates;
366 int TemplateTriangulation();
368 TemplateIDType ComputeTemplateIndex();
represent and manipulate 3D points
void InitTriangulation(double bounds[6], int numPts)
vtkIdType AddTetras(int classification, vtkCellArray *connectivity)
Add the tetrahedra classified (0=inside,1=outside) to the connectivity list provided.
int GetNextTetra(int classification, vtkTetra *tet, vtkDataArray *cellScalars, vtkDoubleArray *tetScalars)
Methods to get one tetra at a time.
represent and manipulate point attribute data
double * GetPointPosition(vtkIdType internalId)
Return the parametric coordinates of point ‘internalId’.
void Triangulate()
Perform the triangulation.
abstract base class for most VTK objects
vtkIdType AddTriangles(vtkCellArray *connectivity)
Add the triangle faces classified (2=boundary) to the connectivity list provided.
vtkIdType GetTetras(int classification, vtkUnstructuredGrid *ugrid)
Initialize and add the tetras and points from the triangulation to the unstructured grid provided.
~vtkOrderedTriangulator() override
abstract superclass for arrays of numeric data
vtkIdType GetPointId(vtkIdType internalId)
Return the Id of point ‘internalId’.
vtkIdType AddTetras(int classification, vtkIncrementalPointLocator *locator, vtkCellArray *outConnectivity, vtkPointData *inPD, vtkPointData *outPD, vtkCellData *inCD, vtkIdType cellId, vtkCellData *outCD)
Assuming that all the inserted points come from a cell ‘cellId’ to triangulate, get the tetrahedra in...
void InitTetraTraversal()
Methods to get one tetra at a time.
vtkIdType InsertPoint(vtkIdType id, vtkIdType sortid, vtkIdType sortid2, double x[3], double p[3], int type)
helper class to generate triangulations
void TemplateTriangulate(int cellType, int numPts, int numEdges)
vtkIdType InsertPoint(vtkIdType id, double x[3], double p[3], int type)
For each point to be inserted, provide an id, a position x, parametric coordinate p,...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate cell attribute data
a simple class to control print indentation
object to represent cell connectivity
Abstract class in support of both point location and point insertion.
list of point or cell ids
vtkIdType AddTetras(int classification, vtkIdList *ptIds, vtkPoints *pts)
Add the tetrahedra classified (0=inside,1=outside) to the list of ids and coordinates provided.
CellTypeInDataSet cellType(vtkDataSet *input)
replacement for malloc/free and new/delete
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkIdType AddTetras(int classification, vtkUnstructuredGrid *ugrid)
Add the tetras to the unstructured grid provided.
void InitTriangulation(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, int numPts)
Initialize the triangulation process.
vtkIdType AddTriangles(vtkIdType id, vtkCellArray *connectivity)
Add the triangle faces classified (2=boundary) and attached to the specified point id to the connecti...
void UpdatePointType(vtkIdType internalId, int type)
Update the point type.
dynamic, self-adjusting array of double
dataset represents arbitrary combinations of all possible cell types
static vtkOrderedTriangulator * New()
Construct object.
vtkIdType InsertPoint(vtkIdType id, vtkIdType sortid, double x[3], double p[3], int type)
a 3D cell that represents a tetrahedron
double * GetPointLocation(vtkIdType internalId)
Return the global coordinates of point ‘internalId’.