The MeshEvalDuplicatePoints class searches for duplicated points. More...
#include <Degeneration.h>
Public Member Functions | |
bool | Evaluate () |
Merges points to one if the distance between them is less than the global MeshDefinitions::_fMinPointDistanceD1. | |
std::vector< unsigned long > | GetIndices () const |
Returns the indices of all duplicated points. | |
MeshEvalDuplicatePoints (const MeshKernel &rclM) | |
Construction. | |
~MeshEvalDuplicatePoints () | |
Destruction. |
The MeshEvalDuplicatePoints class searches for duplicated points.
A point is regarded as duplicated if the distances between x, y and z coordinates of two points is less than an epsilon (defined by MeshDefinitions::_fMinPointDistanceD1, default value=1.0e-5f).
Definition at line 98 of file Degeneration.h.
MeshCore::MeshEvalDuplicatePoints::MeshEvalDuplicatePoints | ( | const MeshKernel & | rclM | ) | [inline] |
Construction.
Definition at line 104 of file Degeneration.h.
MeshCore::MeshEvalDuplicatePoints::~MeshEvalDuplicatePoints | ( | ) | [inline] |
Destruction.
Definition at line 108 of file Degeneration.h.
bool MeshEvalDuplicatePoints::Evaluate | ( | ) | [virtual] |
Merges points to one if the distance between them is less than the global MeshDefinitions::_fMinPointDistanceD1.
Implements MeshCore::MeshEvaluation.
Definition at line 129 of file Degeneration.cpp.
References MeshCore::MeshEvaluation::_rclMesh, and MeshCore::MeshKernel::GetPoints().
Referenced by MeshGui::DlgEvaluateMeshImp::on_analyzeDuplicatedPointsButton_clicked(), and MeshGui::DlgEvaluateMeshImp::on_repairAllTogether_clicked().
std::vector< unsigned long > MeshEvalDuplicatePoints::GetIndices | ( | ) | const |
Returns the indices of all duplicated points.
Definition at line 147 of file Degeneration.cpp.
References MeshCore::MeshEvaluation::_rclMesh, and MeshCore::MeshKernel::GetPoints().
Referenced by MeshGui::DlgEvaluateMeshImp::on_analyzeDuplicatedPointsButton_clicked().