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< unsigned long > | 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 | |
| MeshEvaluation (const MeshKernel &rclB) | |
| virtual | ~MeshEvaluation () |
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'.
Constructor & Destructor Documentation
◆ MeshEvalDegeneratedFacets()
| MeshCore::MeshEvalDegeneratedFacets::MeshEvalDegeneratedFacets | ( | const MeshKernel & | rclM, |
| float | fEps | ||
| ) |
Construction.
◆ ~MeshEvalDegeneratedFacets()
| MeshCore::MeshEvalDegeneratedFacets::~MeshEvalDegeneratedFacets | ( | ) |
Destruction.
Member Function Documentation
◆ CountEdgeTooSmall()
| 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().
◆ Evaluate()
|
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().
◆ GetIndices()
| std::vector< unsigned long > 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().
The documentation for this class was generated from the following files:
- src/Mod/Mesh/App/Core/Degeneration.h
- src/Mod/Mesh/App/Core/Degeneration.cpp
Public Member Functions inherited from
1.8.17