From b166ec47dd7e34e6798c1287d0ce8612a84e9be1 Mon Sep 17 00:00:00 2001 From: Alex Verschoot Date: Sun, 2 Mar 2025 23:07:17 +0100 Subject: [PATCH] Remove old commented code from dimension.scad --- utils/dimension.scad | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/utils/dimension.scad b/utils/dimension.scad index 81ff73e..76eb3e1 100644 --- a/utils/dimension.scad +++ b/utils/dimension.scad @@ -27,7 +27,6 @@ include <../utils/maths.scad> //if text is empty, will display the number value -//text_plane is either "XY" or "XZ" module dimension(startpoint, endpoint, text = "", thickness = 0.1) { // Compute vector between points direction = endpoint - startpoint; @@ -37,12 +36,8 @@ module dimension(startpoint, endpoint, text = "", thickness = 0.1) { // Ensure nonzero values for calculations dir_xy = norm([direction.x, direction.y]); - // Compute rotation angles safely - //azimuth = (dir_xy == 0) ? 0 : atan2(direction.y, direction.x); + // Compute rotation angles azimuth = atan2(direction.y, direction.x); - /*elevation = (direction.x == 0 && direction.y == 0) - ? ((direction.z > 0) ? -90 : 90) - : -atan2(direction.z, dir_xy);*/ elevation = -atan2(direction.z, dir_xy); // Draw measurement line as a thin cylinder