Edge error metric interface used by the tessellator. More...
#include <MeshVizXLM/tessellator/MiEdgeErrorMetric.h>
Public Member Functions | |
virtual | ~MiEdgeErrorMetric () |
virtual bool | isEdgeLinear (const _T &v0, const _T &v1, const _T &vM) const =0 |
Checks if an edge can be seen as linear or not according to its coordinates or its values. | |
virtual size_t | getTimeStamp () const =0 |
Returns a time stamp on this edge error metric. | |
Edge error metric interface used by the tessellator.
This class is used to check if an edge can be considered as linear or not. The isEdgeLinear method is called by the tessellator in order to estimate the quality of an edge tessellation and thus the quality of the mesh tessellation.
See MxEdgeErrorMetricGeometry for an example of implementation of this interface. It defines a geometrical criterion by using only the coordinates of an edge to check if it could be seen as linear or not.
Definition at line 52 of file MiEdgeErrorMetric.h.
|
inlinevirtual |
Definition at line 55 of file MiEdgeErrorMetric.h.
|
pure virtual |
Returns a time stamp on this edge error metric.
Whenever any parameter used by the application method isEdgeLinear() changes, the time stamp must increase.
Implemented in MxEdgeErrorMetricGeometry.
|
pure virtual |
Checks if an edge can be seen as linear or not according to its coordinates or its values.
Given 2 values v0,v1 at the end points of the edge, and one value vM at the theoretical middle point of the edge, the method returns true if the edge can be seen as linear.
[in] | v0 | value at the first end point of the edge. |
[in] | v1 | value at the second end point of the edge. |
[in] | vM | value at the theoretical middle point of the edge. |
Implemented in MxEdgeErrorMetricGeometry.