47 #ifndef __vtkSimpleCellTessellator_h
48 #define __vtkSimpleCellTessellator_h
50 #include "vtkGenericCellTessellator.h"
52 class vtkTriangleTile;
57 class vtkGenericSubdivisionErrorMetric;
58 class vtkGenericAttributeCollection;
59 class vtkGenericAdaptorCell;
60 class vtkGenericCellIterator;
74 void PrintSelf(ostream& os,
vtkIndent indent);
78 vtkGetObjectMacro(GenericCell, vtkGenericAdaptorCell);
89 void TessellateFace(vtkGenericAdaptorCell *cell,
90 vtkGenericAttributeCollection *att,
104 void Tessellate(vtkGenericAdaptorCell *cell,
105 vtkGenericAttributeCollection *att,
118 void Triangulate(vtkGenericAdaptorCell *cell,
119 vtkGenericAttributeCollection *att,
130 void Initialize(vtkGenericDataSet *ds);
141 int GetFixedSubdivisions();
149 int GetMaxSubdivisionLevel();
153 int GetMaxAdaptiveSubdivisions();
159 void SetFixedSubdivisions(
int level);
165 void SetMaxSubdivisionLevel(
int level);
174 void SetSubdivisionLevels(
int fixed,
190 void InsertEdgesIntoEdgeTable( vtkTriangleTile &tri );
191 void RemoveEdgesFromEdgeTable( vtkTriangleTile &tri );
192 void InsertPointsIntoEdgeTable( vtkTriangleTile &tri );
194 void InsertEdgesIntoEdgeTable( vtkTetraTile &tetra );
195 void RemoveEdgesFromEdgeTable( vtkTetraTile &tetra );
208 void InitTetraTile(vtkTetraTile &root,
225 void TriangulateTriangle(vtkGenericAdaptorCell *cell,
229 vtkGenericAttributeCollection *att,
240 void AllocateScalars(
int size);
272 int FindEdgeReferenceCount(
double p1[3],
double p2[3],
275 int GetNumberOfCellsUsingFace(
int faceId );
276 int GetNumberOfCellsUsingEdge(
int edgeId );
283 int IsEdgeOnFace(
double p1[3],
double p2[3]);
290 int FindEdgeParent2D(
double p1[3],
double p2[3],
int &localId);
298 int FindEdgeParent(
double p1[3],
double p2[3],
int &localId);
302 void AllocatePointIds(
int size);
308 int FacesAreEqual(
int *originalFace,
356 friend class vtkTetraTile;
357 friend class vtkTriangleTile;
vtkOrderedTriangulator * Triangulator
represent and manipulate point attribute data
vtkGenericCellIterator * CellIterator
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
vtkGenericAttributeCollection * AttributeCollection
dynamic, self-adjusting array of double
vtkDoubleArray * TessellatePoints
vtkPointData * TessellatePointData
vtkCellArray * Connectivity
a simple class to control print indentation
list of point or cell ids
a cell that represents an n-sided polygon
int CurrentSubdivisionLevel
object to represent cell connectivity
vtkGenericDataSet * DataSet