Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
MeshTest_CheckTopology Class Reference

This class checks topology of the mesh presented by triangulations of faces. More...

#include <MeshTest_CheckTopology.hxx>

Public Member Functions

 MeshTest_CheckTopology (const TopoDS_Shape &theShape)
 constructor
void Perform (Draw_Interpretor &di)
 performs checking
int NbFacesWithFL () const
 returns the number of faces with free links
int GetFaceNumWithFL (const int theIndex) const
 returns the number (in the shape) of a face with free links with the given index
int NbFreeLinks (const int theIndex) const
 returns the number free links on a face with the given index
void GetFreeLink (const int theFaceIndex, const int theLinkIndex, int &theNode1, int &theNode2) const
 gets the numbers of nodes of a free link with the given index in the face with the given index
int NbCrossFaceErrors () const
 returns the number of cross face errors
void GetCrossFaceError (const int theIndex, int &theFace1, int &theNode1, int &theFace2, int &theNode2, double &theValue) const
 gets the attributes of a cross face error with the given index
int NbAsyncEdges () const
 returns the number of async edges
int GetAsyncEdgeNum (const int theIndex) const
 returns the number (in the shape) of an async edge with the given index
int NbFreeNodes () const
 returns the number of free nodes
void GetFreeNodeNum (const int theIndex, int &theFaceNum, int &theNodeNum) const
 returns the number of face containing the Index-th detected free node, and number of this node in the triangulation of that face
int NbSmallTriangles () const
 Returns number of triangles with null area.
void GetSmallTriangle (const int theIndex, int &theFaceNum, int &theNodeNum) const
 returns the number of face containing the Index-th detected small triangle and number of the problematic triangle in this face.

Detailed Description

This class checks topology of the mesh presented by triangulations of faces.

The following error are reported:

  • free links. A link is considered free if it has only one neighboring triangle and at least one of its nodes belongs to interior of the face rather than to its boundary.
  • cross face errors. It is a situation when a point on a common boundary between two faces has different 3d coordinates on each triangulation. The error is reported if the distance is greater than a deflection written in triangulations.
  • asynchronous edges. It is an edge having polygons on two neighboring triangulations with different number of points in the polygons.
  • free nodes – nodes not shared by any triangle.

Constructor & Destructor Documentation

◆ MeshTest_CheckTopology()

MeshTest_CheckTopology::MeshTest_CheckTopology ( const TopoDS_Shape & theShape)
inline

constructor

Member Function Documentation

◆ GetAsyncEdgeNum()

int MeshTest_CheckTopology::GetAsyncEdgeNum ( const int theIndex) const
inline

returns the number (in the shape) of an async edge with the given index

◆ GetCrossFaceError()

void MeshTest_CheckTopology::GetCrossFaceError ( const int theIndex,
int & theFace1,
int & theNode1,
int & theFace2,
int & theNode2,
double & theValue ) const

gets the attributes of a cross face error with the given index

◆ GetFaceNumWithFL()

int MeshTest_CheckTopology::GetFaceNumWithFL ( const int theIndex) const
inline

returns the number (in the shape) of a face with free links with the given index

◆ GetFreeLink()

void MeshTest_CheckTopology::GetFreeLink ( const int theFaceIndex,
const int theLinkIndex,
int & theNode1,
int & theNode2 ) const

gets the numbers of nodes of a free link with the given index in the face with the given index

◆ GetFreeNodeNum()

void MeshTest_CheckTopology::GetFreeNodeNum ( const int theIndex,
int & theFaceNum,
int & theNodeNum ) const
inline

returns the number of face containing the Index-th detected free node, and number of this node in the triangulation of that face

◆ GetSmallTriangle()

void MeshTest_CheckTopology::GetSmallTriangle ( const int theIndex,
int & theFaceNum,
int & theNodeNum ) const
inline

returns the number of face containing the Index-th detected small triangle and number of the problematic triangle in this face.

◆ NbAsyncEdges()

int MeshTest_CheckTopology::NbAsyncEdges ( ) const
inline

returns the number of async edges

◆ NbCrossFaceErrors()

int MeshTest_CheckTopology::NbCrossFaceErrors ( ) const
inline

returns the number of cross face errors

◆ NbFacesWithFL()

int MeshTest_CheckTopology::NbFacesWithFL ( ) const
inline

returns the number of faces with free links

◆ NbFreeLinks()

int MeshTest_CheckTopology::NbFreeLinks ( const int theIndex) const
inline

returns the number free links on a face with the given index

◆ NbFreeNodes()

int MeshTest_CheckTopology::NbFreeNodes ( ) const
inline

returns the number of free nodes

◆ NbSmallTriangles()

int MeshTest_CheckTopology::NbSmallTriangles ( ) const
inline

Returns number of triangles with null area.

◆ Perform()

void MeshTest_CheckTopology::Perform ( Draw_Interpretor & di)

performs checking


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