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. | |
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. |
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'.
Definition at line 200 of file Degeneration.h.
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.
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] |
Searches degenerated facets.
Implements MeshCore::MeshEvaluation.
Definition at line 383 of file Degeneration.cpp.
References MeshCore::MeshEvaluation::_rclMesh, MeshCore::MeshFacetIterator::Init(), MeshCore::MeshFacetIterator::More(), and MeshCore::MeshFacetIterator::Next().
Referenced by MeshGui::DlgEvaluateMeshImp::on_repairAllTogether_clicked().
std::vector< unsigned long > MeshEvalDegeneratedFacets::GetIndices | ( | ) | const |
Returns the indices of all corrupt facets.
Definition at line 413 of file Degeneration.cpp.
References MeshCore::MeshEvaluation::_rclMesh, MeshCore::MeshFacetIterator::Init(), MeshCore::MeshFacetIterator::More(), MeshCore::MeshFacetIterator::Next(), and MeshCore::MeshFacetIterator::Position().
Referenced by MeshGui::DlgEvaluateMeshImp::on_analyzeDegeneratedButton_clicked().