47 #ifndef vtkSimpleCellTessellator_h
48 #define vtkSimpleCellTessellator_h
53 class vtkTriangleTile;
142 int GetFixedSubdivisions();
150 int GetMaxSubdivisionLevel();
154 int GetMaxAdaptiveSubdivisions();
160 void SetFixedSubdivisions(
int level);
166 void SetMaxSubdivisionLevel(
int level);
175 void SetSubdivisionLevels(
int fixed,
191 void InsertEdgesIntoEdgeTable( vtkTriangleTile &tri );
192 void RemoveEdgesFromEdgeTable( vtkTriangleTile &tri );
193 void InsertPointsIntoEdgeTable( vtkTriangleTile &tri );
195 void InsertEdgesIntoEdgeTable( vtkTetraTile &tetra );
196 void RemoveEdgesFromEdgeTable( vtkTetraTile &tetra );
209 void InitTetraTile(vtkTetraTile &root,
241 void AllocateScalars(
int size);
273 int FindEdgeReferenceCount(
double p1[3],
double p2[3],
276 int GetNumberOfCellsUsingFace(
int faceId );
277 int GetNumberOfCellsUsingEdge(
int edgeId );
284 int IsEdgeOnFace(
double p1[3],
double p2[3]);
291 int FindEdgeParent2D(
double p1[3],
double p2[3],
int &localId);
299 int FindEdgeParent(
double p1[3],
double p2[3],
int &localId);
303 void AllocatePointIds(
int size);
309 int FacesAreEqual(
int *originalFace,
354 friend class vtkTetraTile;
355 friend class vtkTriangleTile;
vtkOrderedTriangulator * Triangulator
represent and manipulate point attribute data
helper class to perform cell tessellation
a collection of attributes
vtkGenericCellIterator * CellIterator
virtual void TessellateFace(vtkGenericAdaptorCell *cell, vtkGenericAttributeCollection *att, vtkIdType index, vtkDoubleArray *points, vtkCellArray *cellArray, vtkPointData *internalPd)=0
vtkGenericAdaptorCell * GenericCell
helper class to perform cell tessellation
keep track of edges (defined by pair of integer id's)
vtkGenericEdgeTable * EdgeTable
vtkCellArray * TessellateCellArray
helper class to generate triangulations
void PrintSelf(ostream &os, vtkIndent indent)
vtkGenericAttributeCollection * AttributeCollection
virtual void Triangulate(vtkGenericAdaptorCell *cell, vtkGenericAttributeCollection *att, vtkDoubleArray *points, vtkCellArray *cellArray, vtkPointData *internalPd)=0
dynamic, self-adjusting array of double
iterator used to traverse cells
vtkDoubleArray * TessellatePoints
vtkPointData * TessellatePointData
vtkCellArray * Connectivity
a simple class to control print indentation
virtual void Tessellate(vtkGenericAdaptorCell *cell, vtkGenericAttributeCollection *att, vtkDoubleArray *points, vtkCellArray *cellArray, vtkPointData *internalPd)=0
list of point or cell ids
a cell that represents an n-sided polygon
virtual void Initialize(vtkGenericDataSet *ds)=0
int CurrentSubdivisionLevel
Objects that compute error during cell tessellation.
object to represent cell connectivity
vtkGenericDataSet * DataSet
defines dataset interface
#define VTKCOMMONDATAMODEL_EXPORT