|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
vtkSimpleCellTessellator * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
void | TessellateFace (vtkGenericAdaptorCell *cell, vtkGenericAttributeCollection *att, vtkIdType index, vtkDoubleArray *points, vtkCellArray *cellArray, vtkPointData *internalPd) override |
| Tessellate a face of a 3D ‘cell’.
|
|
void | Tessellate (vtkGenericAdaptorCell *cell, vtkGenericAttributeCollection *att, vtkDoubleArray *points, vtkCellArray *cellArray, vtkPointData *internalPd) override |
| Tessellate a 3D ‘cell’.
|
|
void | Triangulate (vtkGenericAdaptorCell *cell, vtkGenericAttributeCollection *att, vtkDoubleArray *points, vtkCellArray *cellArray, vtkPointData *internalPd) override |
| Triangulate a 2D ‘cell’.
|
|
void | Reset () |
| Reset the output for repeated use of this class.
|
|
void | Initialize (vtkGenericDataSet *ds) override |
| Initialize the tessellator with a data set ‘ds’.
|
|
int | GetFixedSubdivisions () |
| Return the number of fixed subdivisions.
|
|
int | GetMaxSubdivisionLevel () |
| Return the maximum level of subdivision.
|
|
int | GetMaxAdaptiveSubdivisions () |
| Return the maximum number of adaptive subdivisions.
|
|
void | SetFixedSubdivisions (int level) |
| Set the number of fixed subdivisions.
|
|
void | SetMaxSubdivisionLevel (int level) |
| Set the maximum level of subdivision.
|
|
void | SetSubdivisionLevels (int fixed, int maxLevel) |
| Set both the number of fixed subdivisions and the maximum level of subdivisions.
|
|
|
virtual vtkGenericAdaptorCell * | GetGenericCell () |
| Get the higher order cell in order to access the evaluation function.
|
|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
vtkGenericCellTessellator * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
virtual void | TessellateFace (vtkGenericAdaptorCell *cell, vtkGenericAttributeCollection *att, vtkIdType index, vtkDoubleArray *points, vtkCellArray *cellArray, vtkPointData *internalPd)=0 |
| Tessellate a face of a 3D ‘cell’.
|
|
virtual void | Tessellate (vtkGenericAdaptorCell *cell, vtkGenericAttributeCollection *att, vtkDoubleArray *points, vtkCellArray *cellArray, vtkPointData *internalPd)=0 |
| Tessellate a 3D ‘cell’.
|
|
virtual void | Triangulate (vtkGenericAdaptorCell *cell, vtkGenericAttributeCollection *att, vtkDoubleArray *points, vtkCellArray *cellArray, vtkPointData *internalPd)=0 |
| Triangulate a 2D ‘cell’.
|
|
virtual void | Initialize (vtkGenericDataSet *ds)=0 |
| Initialize the tessellator with a data set ‘ds’.
|
|
void | InitErrorMetrics (vtkGenericDataSet *ds) |
| Init the error metric with the dataset.
|
|
void | GetMaxErrors (double *errors) |
| Get the maximum error measured after the fixed subdivision.
|
|
virtual void | SetErrorMetrics (vtkCollection *someErrorMetrics) |
| Specify the list of error metrics used to decide if an edge has to be split or not.
|
|
virtual vtkCollection * | GetErrorMetrics () |
| Specify the list of error metrics used to decide if an edge has to be split or not.
|
|
virtual int | GetMeasurement () |
| If true, measure the quality of the fixed subdivision.
|
|
virtual void | SetMeasurement (int) |
| If true, measure the quality of the fixed subdivision.
|
|
| vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
|
virtual void | DebugOn () |
| Turn debugging output on.
|
|
virtual void | DebugOff () |
| Turn debugging output off.
|
|
bool | GetDebug () |
| Get the value of the debug flag.
|
|
void | SetDebug (bool debugFlag) |
| Set the value of the debug flag.
|
|
virtual void | Modified () |
| Update the modification time for this object.
|
|
virtual vtkMTimeType | GetMTime () |
| Return this object's modified time.
|
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
vtkTypeBool | HasObserver (unsigned long event) |
|
vtkTypeBool | HasObserver (const char *event) |
|
vtkTypeBool | InvokeEvent (unsigned long event) |
|
vtkTypeBool | InvokeEvent (const char *event) |
|
std::string | GetObjectDescription () const override |
| The object description printed in messages and PrintSelf output.
|
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
vtkCommand * | GetCommand (unsigned long tag) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
void | RemoveObserver (vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
void | RemoveObservers (const char *event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| Allow user to set the AbortFlagOn() with the return value of the callback method.
|
|
vtkTypeBool | InvokeEvent (unsigned long event, void *callData) |
| This method invokes an event and return whether the event was aborted or not.
|
|
vtkTypeBool | InvokeEvent (const char *event, void *callData) |
| This method invokes an event and return whether the event was aborted or not.
|
|
virtual void | SetObjectName (const std::string &objectName) |
| Set/get the name of this object for reporting purposes.
|
|
virtual std::string | GetObjectName () const |
| Set/get the name of this object for reporting purposes.
|
|
const char * | GetClassName () const |
| Return the class name as a string.
|
|
virtual std::string | GetObjectDescription () const |
| The object description printed in messages and PrintSelf output.
|
|
virtual vtkTypeBool | IsA (const char *name) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
| Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
|
|
virtual void | Delete () |
| Delete a VTK object.
|
|
virtual void | FastDelete () |
| Delete a reference to this object.
|
|
void | InitializeObjectBase () |
|
void | Print (ostream &os) |
| Print an object to an ostream.
|
|
void | Register (vtkObjectBase *o) |
| Increase the reference count (mark as used by another object).
|
|
virtual void | UnRegister (vtkObjectBase *o) |
| Decrease the reference count (release by another object).
|
|
int | GetReferenceCount () |
| Return the current reference count of this object.
|
|
void | SetReferenceCount (int) |
| Sets the reference count.
|
|
bool | GetIsInMemkind () const |
| A local state flag that remembers whether this object lives in the normal or extended memory space.
|
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| Methods invoked by print to print information about the object including superclasses.
|
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| Methods invoked by print to print information about the object including superclasses.
|
|
virtual bool | UsesGarbageCollector () const |
| Indicate whether the class uses vtkGarbageCollector or not.
|
|
|
static vtkSimpleCellTessellator * | New () |
|
static vtkTypeBool | IsTypeOf (const char *type) |
|
static vtkSimpleCellTessellator * | SafeDownCast (vtkObjectBase *o) |
|
static vtkTypeBool | IsTypeOf (const char *type) |
|
static vtkGenericCellTessellator * | SafeDownCast (vtkObjectBase *o) |
|
static vtkObject * | New () |
| Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
|
|
static void | BreakOnError () |
| This method is called when vtkErrorMacro executes.
|
|
static void | SetGlobalWarningDisplay (vtkTypeBool val) |
| This is a global flag that controls whether any debug, warning or error messages are displayed.
|
|
static void | GlobalWarningDisplayOn () |
| This is a global flag that controls whether any debug, warning or error messages are displayed.
|
|
static void | GlobalWarningDisplayOff () |
| This is a global flag that controls whether any debug, warning or error messages are displayed.
|
|
static vtkTypeBool | GetGlobalWarningDisplay () |
| This is a global flag that controls whether any debug, warning or error messages are displayed.
|
|
static vtkTypeBool | IsTypeOf (const char *name) |
| Return 1 if this class type is the same type of (or a subclass of) the named class.
|
|
static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
| Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
|
|
static vtkObjectBase * | New () |
| Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
|
|
static void | SetMemkindDirectory (const char *directoryname) |
| The name of a directory, ideally mounted -o dax, to memory map an extended memory space within.
|
|
static bool | GetUsingMemkind () |
| A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space.
|
|
|
virtual vtkObjectBase * | NewInstanceInternal () const |
|
| vtkSimpleCellTessellator () |
|
| ~vtkSimpleCellTessellator () override |
|
void | CopyPoint (vtkIdType pointId) |
| Extract point ‘pointId’ from the edge table to the output point and output point data.
|
|
void | InsertEdgesIntoEdgeTable (vtkTriangleTile &tri) |
|
void | RemoveEdgesFromEdgeTable (vtkTriangleTile &tri) |
|
void | InsertPointsIntoEdgeTable (vtkTriangleTile &tri) |
|
void | InsertEdgesIntoEdgeTable (vtkTetraTile &tetra) |
|
void | RemoveEdgesFromEdgeTable (vtkTetraTile &tetra) |
|
void | InitTetraTile (vtkTetraTile &root, const vtkIdType *localIds, vtkIdType *ids, int *edgeIds, int *faceIds) |
| Initialize ‘root’ with the sub-tetra defined by the ‘localIds’ points on the complex cell, ‘ids’ are the global ids over the mesh of those points.
|
|
void | TriangulateTriangle (vtkGenericAdaptorCell *cell, vtkIdType *localIds, vtkIdType *ids, const vtkIdType *edgeIds, vtkGenericAttributeCollection *att, vtkDoubleArray *points, vtkCellArray *cellArray, vtkPointData *internalPd) |
| Triangulate a triangle of ‘cell’.
|
|
void | AllocateScalars (int size) |
| Allocate some memory if Scalars does not exist or is smaller than size.
|
|
int | FindEdgeReferenceCount (double p1[3], double p2[3], vtkIdType &e1, vtkIdType &e2) |
|
int | GetNumberOfCellsUsingFace (int faceId) |
|
int | GetNumberOfCellsUsingEdge (int edgeId) |
|
int | IsEdgeOnFace (double p1[3], double p2[3]) |
| Is the edge defined by vertices (‘p1’,‘p2’) in parametric coordinates on some edge of the original tetrahedron? If yes return on which edge it is, else return -1.
|
|
int | FindEdgeParent2D (double p1[3], double p2[3], int &localId) |
| Return 1 if the parent of edge defined by vertices (‘p1’,‘p2’) in parametric coordinates, is an edge; 3 if there is no parent (the edge is inside).
|
|
int | FindEdgeParent (double p1[3], double p2[3], int &localId) |
| Return 1 if the parent of edge defined by vertices (‘p1’,‘p2’) in parametric coordinates, is an edge; 2 if the parent is a face, 3 if there is no parent (the edge is inside).
|
|
void | AllocatePointIds (int size) |
| Allocate some memory if PointIds does not exist or is smaller than size.
|
|
int | FacesAreEqual (const vtkIdType *originalFace, const vtkIdType face[3]) |
| Are the faces ‘originalFace’ and ‘face’ equal? The result is independent from any order or orientation.
|
|
virtual vtkObjectBase * | NewInstanceInternal () const |
|
| vtkGenericCellTessellator () |
|
| ~vtkGenericCellTessellator () override |
|
int | RequiresEdgeSubdivision (double *left, double *mid, double *right, double alpha) |
| Does the edge need to be subdivided according to at least one error metric? The edge is defined by its ‘leftPoint’ and its ‘rightPoint’.
|
|
virtual void | UpdateMaxError (double *leftPoint, double *midPoint, double *rightPoint, double alpha) |
| Update the max error of each error metric according to the error at the mid-point.
|
|
void | ResetMaxErrors () |
| Reset the maximal error of each error metric.
|
|
void | SetGenericCell (vtkGenericAdaptorCell *cell) |
| Send the current cell to error metrics.
|
|
| vtkObject () |
|
| ~vtkObject () override |
|
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
|
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
|
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
| These methods allow a command to exclusively grab all events.
|
|
void | InternalReleaseFocus () |
| These methods allow a command to exclusively grab all events.
|
|
| vtkObjectBase () |
|
virtual | ~vtkObjectBase () |
|
virtual void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) |
|
virtual void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) |
|
virtual void | ReportReferences (vtkGarbageCollector *) |
|
virtual void | ObjectFinalize () |
|
| vtkObjectBase (const vtkObjectBase &) |
|
void | operator= (const vtkObjectBase &) |
|
helper class to perform cell tessellation
vtkSimpleCellTessellator is a helper class to perform adaptive tessellation of particular cell topologies. The major purpose for this class is to transform higher-order cell types (e.g., higher-order finite elements) into linear cells that can then be easily visualized by VTK. This class works in conjunction with the vtkGenericDataSet and vtkGenericAdaptorCell classes.
This algorithm is based on edge subdivision. An error metric along each edge is evaluated, and if the error is greater than some tolerance, the edge is subdivided (as well as all connected 2D and 3D cells). The process repeats until the error metric is satisfied. Since the algorithm is based on edge subdivision it inherently avoid T-junctions.
A significant issue addressed by this algorithm is to ensure face compatibility across neighboring cells. That is, diagonals due to face triangulation must match to ensure that the mesh is compatible. The algorithm employs a precomputed table to accelerate the tessellation process. The table was generated with the help of vtkOrderedTriangulator the basic idea is that the choice of diagonal is made only by considering the relative value of the point ids.
- See also
- vtkGenericCellTessellator vtkGenericSubdivisionErrorMetric vtkAttributesErrorMetric vtkGeometricErrorMetric vtkViewDependentErrorMetric
- Tests:
- vtkSimpleCellTessellator (Tests)
Definition at line 60 of file vtkSimpleCellTessellator.h.