From 36b4a149a48e4f1a3922572656a13c884dc1c5ad Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 22 Nov 2022 13:13:25 +0100 Subject: [PATCH] Gizmo measure - Fixed calculation of angle edge-plane --- src/libslic3r/Measure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Measure.cpp b/src/libslic3r/Measure.cpp index 8213f9778..9105d65c8 100644 --- a/src/libslic3r/Measure.cpp +++ b/src/libslic3r/Measure.cpp @@ -34,7 +34,7 @@ static std::array orthonormal_basis(const Vec3d& v) std::array 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; }