MeshCore::MeshEvalDegeneratedFacets Class Reference

The MeshEvalDegeneratedFacets class searches for degenerated facets. More...

#include <Degeneration.h>

Inheritance diagram for MeshCore::MeshEvalDegeneratedFacets:
MeshCore::MeshEvaluation

List of all members.

Public Member Functions

unsigned long CountEdgeTooSmall (float fMinEdgeLength) const
 Returns the number of facets with an edge smaller than fMinEdgeLength.
bool Evaluate ()
 Searches degenerated facets.
std::vector< unsigned long > GetIndices () const
 Returns the indices of all corrupt facets.
 MeshEvalDegeneratedFacets (const MeshKernel &rclM)
 Construction.
 ~MeshEvalDegeneratedFacets ()
 Destruction.

Detailed Description

The MeshEvalDegeneratedFacets class searches for degenerated facets.

A facet is degenerated either if its points are collinear, i.e. they lie on a line or two points are coincident. In the latter case these points are duplicated. If a facet refers to at least two equal point indices then the facet is also regarded is 'corrupt'.

See also:
MeshEvalCorruptedFacets
MeshEvalDuplicatePoints
MeshFixDegeneratedFacets
Author:
Werner Mayer

Definition at line 200 of file Degeneration.h.


Constructor & Destructor Documentation

MeshCore::MeshEvalDegeneratedFacets::MeshEvalDegeneratedFacets ( const MeshKernel rclM  )  [inline]

Construction.

Definition at line 206 of file Degeneration.h.

MeshCore::MeshEvalDegeneratedFacets::~MeshEvalDegeneratedFacets (  )  [inline]

Destruction.

Definition at line 210 of file Degeneration.h.


Member Function Documentation

unsigned long MeshEvalDegeneratedFacets::CountEdgeTooSmall ( float  fMinEdgeLength  )  const

Returns the number of facets with an edge smaller than fMinEdgeLength.

Definition at line 395 of file Degeneration.cpp.

References MeshCore::MeshEvaluation::_rclMesh, Base::Distance(), MeshCore::MeshFacetIterator::EndReached(), and k.

bool MeshEvalDegeneratedFacets::Evaluate (  )  [virtual]
std::vector< unsigned long > MeshEvalDegeneratedFacets::GetIndices (  )  const

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

Generated on Wed Nov 23 19:02:23 2011 for FreeCAD by  doxygen 1.6.1