The MeshEigensystem class actually does not try to check for or fix errors but it provides methods to calculate the mesh's local coordinate system with the center of gravity as origin. More...
#include <Evaluation.h>
Public Member Functions | |
bool | Evaluate () |
Evaluates the mesh kernel with respect to certain criteria. | |
Base::Vector3f | GetBoundings () const |
Returns the expansions in u, v and w of the bounding box. | |
MeshEigensystem (const MeshKernel &rclB) | |
Base::Matrix4D | Transform () const |
Returns the transformation matrix. | |
virtual | ~MeshEigensystem () |
Protected Member Functions | |
void | CalculateLocalSystem () |
Calculates the local coordinate system defined by u, v, w and c. |
The MeshEigensystem class actually does not try to check for or fix errors but it provides methods to calculate the mesh's local coordinate system with the center of gravity as origin.
The local coordinate system is computed this way that u has minimum and w has maximum expansion. The local coordinate system is right-handed.
Definition at line 328 of file Evaluation.h.
MeshEigensystem::MeshEigensystem | ( | const MeshKernel & | rclB | ) |
Definition at line 978 of file Evaluation.cpp.
References MeshCore::MeshEvaluation::_rclMesh, MeshCore::MeshKernel::GetBoundBox(), Base::BoundBox3< _Precision >::LengthX(), Base::BoundBox3< _Precision >::LengthY(), and Base::BoundBox3< _Precision >::LengthZ().
virtual MeshCore::MeshEigensystem::~MeshEigensystem | ( | ) | [inline, virtual] |
Definition at line 332 of file Evaluation.h.
void MeshEigensystem::CalculateLocalSystem | ( | ) | [protected] |
Calculates the local coordinate system defined by u, v, w and c.
Definition at line 1076 of file Evaluation.cpp.
References MeshCore::MeshEvaluation::_rclMesh, MeshCore::Approximation::AddPoint(), MeshCore::MeshKernel::CountFacets(), MeshCore::PlaneFit::Fit(), MeshCore::PlaneFit::GetBase(), MeshCore::PlaneFit::GetDirU(), MeshCore::PlaneFit::GetDirV(), MeshCore::PlaneFit::GetNormal(), and MeshCore::MeshKernel::GetPoints().
Referenced by Evaluate().
bool MeshEigensystem::Evaluate | ( | ) | [virtual] |
Evaluates the mesh kernel with respect to certain criteria.
Must be reimplemented by every subclass. This pure virtual function returns false if the mesh kernel is invalid according to this criterion and true if the mesh kernel is correct.
Implements MeshCore::MeshEvaluation.
Definition at line 1013 of file Evaluation.cpp.
References MeshCore::MeshEvaluation::_rclMesh, CalculateLocalSystem(), MeshCore::MeshKernel::GetPoints(), Base::Vector3< _Precision >::Length(), and Base::Vector3< _Precision >::ProjToLine().
Referenced by import_NASTRAN(), best_fit::MeshFit_Coarse(), SMESH_PCA(), SpringbackCorrection::SmoothMesh(), and Mesh::MeshObject::transformToEigenSystem().
Base::Vector3f MeshEigensystem::GetBoundings | ( | ) | const |
Returns the expansions in u, v and w of the bounding box.
Definition at line 1071 of file Evaluation.cpp.
Base::Matrix4D MeshEigensystem::Transform | ( | ) | const |
Returns the transformation matrix.
Definition at line 988 of file Evaluation.cpp.
References Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by import_NASTRAN(), best_fit::MeshFit_Coarse(), SMESH_PCA(), SpringbackCorrection::SmoothMesh(), and Mesh::MeshObject::transformToEigenSystem().