The MeshFixDeformedFacets class tries to fix deformed facets by swapping the common edge with one of their neighbours. More...
#include <Degeneration.h>
Public Member Functions | |
bool | Fixup () |
Removes deformed facets. More... | |
MeshFixDeformedFacets (MeshKernel &rclM, float fMinAngle, float fMaxAngle, float fSwapAngle, float fEps) | |
Construction. More... | |
~MeshFixDeformedFacets () | |
Destruction. More... | |
Public Member Functions inherited from MeshCore::MeshValidation | |
virtual bool | Fixup ()=0 |
This function attempts to change the mesh kernel to be valid according to the checked criterion: True is returned if the errors could be fixed, false otherwise. More... | |
MeshValidation (MeshKernel &rclB) | |
virtual | ~MeshValidation () |
The MeshFixDeformedFacets class tries to fix deformed facets by swapping the common edge with one of their neighbours.
MeshCore::MeshFixDeformedFacets::MeshFixDeformedFacets | ( | MeshKernel & | rclM, |
float | fMinAngle, | ||
float | fMaxAngle, | ||
float | fSwapAngle, | ||
float | fEps | ||
) |
Construction.
MeshCore::MeshFixDeformedFacets::~MeshFixDeformedFacets | ( | ) |
Destruction.
|
virtual |
Removes deformed facets.
Implements MeshCore::MeshValidation.
References MeshCore::FACET_INDEX_MAX, MeshCore::MeshFacetIterator::GetReference(), MeshCore::MeshFacetIterator::Init(), MeshCore::MeshGeomFacet::IsDegenerated(), MeshCore::MeshFacetIterator::More(), MeshCore::MeshFacetIterator::Next(), Base::Vector3< _Precision >::Normalize(), MeshCore::MeshFacetIterator::Position(), MeshCore::MeshTopoAlgorithm::ShouldSwapEdge(), and MeshCore::MeshTopoAlgorithm::SwapEdge().
Referenced by Mesh::MeshObject::validateDeformations().