MiEdgeErrorMetric< _T > Class Template Reference
[Tessellation]

MeshViz Edge error metric interface used by the tessellator. More...

#include <MeshVizXLM/tessellator/MiEdgeErrorMetric.h>

List of all members.

Public Member Functions

virtual ~MiEdgeErrorMetric ()
virtual bool isEdgeLinear (const _T &v0, const _T &v1, const _T &vM) const =0
virtual size_t getTimeStamp () const =0

Detailed Description

template<typename _T>
class MiEdgeErrorMetric< _T >

MeshViz 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.

Note:
In order to have a "crack free" tesselation (tessellation without any small gaps along the edges) the method isEdgeLinear() must be symmetric: calling isEdgeLinear(O,P,Q) must return the same result as calling isEdgeLinear(P,O,Q).

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.

See also:
MiTessellator

Constructor & Destructor Documentation

template<typename _T>
virtual MiEdgeErrorMetric< _T >::~MiEdgeErrorMetric (  )  [inline, virtual]

Member Function Documentation

template<typename _T>
virtual size_t MiEdgeErrorMetric< _T >::getTimeStamp (  )  const [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.

template<typename _T>
virtual bool MiEdgeErrorMetric< _T >::isEdgeLinear ( const _T &  v0,
const _T &  v1,
const _T &  vM 
) const [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.

Parameters:
[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.
Returns:
true if the edge can be seen as linear.

Implemented in MxEdgeErrorMetricGeometry.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/