+ method to get Eigensystem of mesh data

This commit is contained in:
wmayer
2015-03-10 22:47:46 +01:00
parent cc7c1d1f44
commit 9ba57683d5
4 changed files with 28 additions and 0 deletions

View File

@@ -790,6 +790,15 @@ void MeshObject::transformToEigenSystem()
this->setTransform(cMeshEval.Transform());
}
Base::Matrix4D MeshObject::getEigenSystem(Base::Vector3d& v) const
{
MeshCore::MeshEigensystem cMeshEval(_kernel);
cMeshEval.Evaluate();
Base::Vector3f uvw = cMeshEval.GetBoundings();
v.Set(uvw.x, uvw.y, uvw.z);
return cMeshEval.Transform();
}
void MeshObject::movePoint(unsigned long index, const Base::Vector3d& v)
{
// v is a vector, hence we must not apply the translation part