The MeshEvalDegeneratedFacets class searches for degenerated facets. More...
#include <Degeneration.h>
Public Member Functions | |
unsigned long | CountEdgeTooSmall (float fMinEdgeLength) const |
Returns the number of facets with an edge smaller than fMinEdgeLength. More... | |
bool | Evaluate () |
Searches degenerated facets. More... | |
std::vector< FacetIndex > | GetIndices () const |
Returns the indices of all corrupt facets. More... | |
MeshEvalDegeneratedFacets (const MeshKernel &rclM, float fEps) | |
Construction. More... | |
~MeshEvalDegeneratedFacets () | |
Destruction. More... | |
Public Member Functions inherited from MeshCore::MeshEvaluation | |
virtual bool | Evaluate ()=0 |
Evaluates the mesh kernel with respect to certain criteria. More... | |
MeshEvaluation (const MeshKernel &rclB) | |
virtual | ~MeshEvaluation () |
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'.
MeshCore::MeshEvalDegeneratedFacets::MeshEvalDegeneratedFacets | ( | const MeshKernel & | rclM, |
float | fEps | ||
) |
Construction.
MeshCore::MeshEvalDegeneratedFacets::~MeshEvalDegeneratedFacets | ( | ) |
Destruction.
unsigned long MeshEvalDegeneratedFacets::CountEdgeTooSmall | ( | float | fMinEdgeLength | ) | const |
Returns the number of facets with an edge smaller than fMinEdgeLength.
References Base::Distance(), and MeshCore::MeshFacetIterator::EndReached().
|
virtual |
Searches degenerated facets.
Implements MeshCore::MeshEvaluation.
References MeshCore::MeshFacetIterator::Init(), MeshCore::MeshGeomFacet::IsDegenerated(), MeshCore::MeshFacetIterator::More(), and MeshCore::MeshFacetIterator::Next().
Referenced by MeshGui::DlgEvaluateMeshImp::on_repairAllTogether_clicked().
std::vector< FacetIndex > MeshEvalDegeneratedFacets::GetIndices | ( | ) | const |
Returns the indices of all corrupt facets.
References MeshCore::MeshFacetIterator::Init(), MeshCore::MeshGeomFacet::IsDegenerated(), MeshCore::MeshFacetIterator::More(), MeshCore::MeshFacetIterator::Next(), and MeshCore::MeshFacetIterator::Position().
Referenced by MeshGui::DlgEvaluateMeshImp::on_analyzeDegeneratedButton_clicked().