ITK
6.0.0
Insight Toolkit
|
The QuadEdgeMesh module contain a specialized set of Mesh classes intended to represent 2-manifolds embedded in a N-Dimensional space. This family of classes provides a consistent representation of oriented surfaces and therefore they are used as a base for implementing common mesh filters and operations. They are commonly used for representing the output of image segmentation algorithms.
Some QuadEdgeMesh algorithms are based on iterating various connectivity operators e.g. curvature driven surface deformation. Many of those connectivity altering operators (e.g. the Euler operators) are lightweight in the sense that they only modify very limited regions of a QuadEdgeMesh: they typically act within the range of couple edges of distance from a considered vertex, edge or face.
On the one side, those atomic operations cannot be implemented as "classical" ITK filters since each filter invocation yields a new copy of the input mesh as its output: this would drastically increase the memory consumption. In fact, those atomic operations have a too much finer grain to be implemented as filters: the filter is more at the scale of the application of a large number of such atomic operations.
One the other hand, those atomic operations cannot be implemented as methods of the itk::QuadEdgeMesh class (or a derived one) at the risk of rapid code bloat.
Making a thematic regrouping within derived classes was discarded because this would force an end user to multiple inheritance which can prove to be a drag in a templated context.
Eventually, QuadEdgeMesh algorithms were implemented as function object: the loosely coupling of those operation methods with the targeted QuadEdgeMesh object and heavier invocation syntax are a small price to pay in exchange for optimal memory usage and end user modularity.
But itk::FunctionBase could not be inherited since its itk::FunctionBase::Evaluate method promises to leave its argument (the mesh we want to modify in our case) untouched.
Hence the itk::QuadEdgeMeshFunctionBase class was created whose main difference with itk::FunctionBase is that its itk::QuadEdgeMeshFunctionBase::Evaluate method allows to modify the considered mesh.
When considering a new QuadEdgeMesh method there are four possible "slots" to implement it:
The choice of the slot is a mere matter of trade-off and in order to keep itk::QuadEdgeMesh tiny and humanly readable key decision factors can be the occurrence of the calls and the human level complexity of the code.
With those criteria in mind the following choices were made:
|
strong |
Status of edge
Enumerator | |
---|---|
STANDARD_CONFIG | |
EDGE_NULL | |
MESH_NULL | |
NON_INTERNAL_EDGE | |
NON_TRIANGULAR_RIGHT_FACE | |
NON_TRIANGULAR_LEFT_FACE | |
EXISTING_OPPOSITE_EDGE |
Definition at line 39 of file itkQuadEdgeMeshEulerOperatorFlipEdgeFunction.h.