suggestion des simplification

This commit is contained in:
Louis-Guillaume DUBOIS 2015-06-07 13:26:55 +02:00
parent b535242410
commit fcaa41dca5

View file

@ -34,6 +34,9 @@ class Callback {
indices.push_back(i);
// v = eg_1 ^ eg_2 is the plan normal
//TODO !!! eg_3 is also the plan normal :-)
// the code hereunder should work :
// Eigen::Vector3f v = eg.col(2);
Eigen::Vector3f v = eg.col(0).cross(eg.col(1));
// norm(v) == 1
v.normalize();