* curently nothing change if you don't define VCG_USE_EIGEN * make Matrix*, Point3 and Point4 derive Eigen::Matrix (still ugly) * now catching all the dot products to replace them by .dot() note that most of meshlab already compile
Quaterniond qtmp; ----->to------> Quaternionx qtmp; Point3d tr; ----->to------> Point3x tr;
std::vector<double> weights ----->to------> std::vector<ScalarType> weights tmp.Trasp(); ----->to------> tmp.Transpose(); QQ.Zero(); ----->to------> QQ.SetZero(); RM.Zero(); ----->to------> RM.SetZero(); ccm.Trasp(); ----->to------> ccm.Transpose(); QQ.Jacobi(d,v,nrot); ----->to------> Jacobi(QQ,d,v,nrot); q.RotMatrix(Rot); ----->to------> q.ToMatrix(Rot); tr= (bfix - Rot.Apply(bmov)); ----->to------> tr= (bfix - Rot *bmov); Trn.Translate(tr); ----->to------> Trn.SetTranslate(tr); 2) in "ComputeRigidMatchMatrix" I changed: return ComputeRigidMatchMatrix(res,Pfix,Pmov,qtmp,tr); ----->to------> return ComputeWeightedRigidMatchMatrix(res,Pfix,Pmov,weights,qtmp,tr);