Gizmo measure - Fixed calculation of angle edge-plane
This commit is contained in:
parent
9bdaf0bae2
commit
d1146ae67a
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ static std::array<Vec3d, 3> orthonormal_basis(const Vec3d& v)
|
|||
std::array<Vec3d, 3> ret;
|
||||
ret[2] = v.normalized();
|
||||
int index;
|
||||
ret[2].maxCoeff(&index);
|
||||
ret[2].cwiseAbs().maxCoeff(&index);
|
||||
switch (index)
|
||||
{
|
||||
case 0: { ret[0] = Vec3d(ret[2].y(), -ret[2].x(), 0.0).normalized(); break; }
|
||||
|
|
Loading…
Reference in a new issue