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. More... | |
Base::Vector3f | GetBoundings () const |
Returns the expansions in u, v and w of the bounding box. More... | |
MeshEigensystem (const MeshKernel &rclB) | |
Base::Matrix4D | Transform () const |
Returns the transformation matrix. More... | |
virtual | ~MeshEigensystem () |
Public Member Functions inherited from MeshCore::MeshEvaluation | |
virtual bool | Evaluate ()=0 |
Evaluates the mesh kernel with respect to certain criteria. More... | |
MeshEvaluation (const MeshKernel &rclB) | |
virtual | ~MeshEvaluation () |
Protected Member Functions | |
void | CalculateLocalSystem () |
Calculates the local coordinate system defined by u, v, w and c. More... | |
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.
MeshEigensystem::MeshEigensystem | ( | const MeshKernel & | rclB | ) |
References Base::BoundBox3< _Precision >::LengthX().
|
virtual |
|
protected |
Calculates the local coordinate system defined by u, v, w and c.
References MeshCore::Approximation::AddPoint(), MeshCore::PlaneFit::Fit(), MeshCore::PlaneFit::GetBase(), MeshCore::PlaneFit::GetDirU(), MeshCore::PlaneFit::GetDirV(), and MeshCore::PlaneFit::GetNormal().
Referenced by 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.
References CalculateLocalSystem(), Base::Vector3< _Precision >::Length(), and Base::Vector3< _Precision >::ProjectToLine().
Referenced by Mesh::MeshObject::getEigenSystem(), and Mesh::MeshObject::transformToEigenSystem().
Base::Vector3f MeshEigensystem::GetBoundings | ( | ) | const |
Returns the expansions in u, v and w of the bounding box.
Referenced by Mesh::MeshObject::getEigenSystem().
Base::Matrix4D MeshEigensystem::Transform | ( | ) | const |
Returns the transformation matrix.
Referenced by Mesh::MeshObject::getEigenSystem(), and Mesh::MeshObject::transformToEigenSystem().