From c75bf8bfee62d888932e11042c75a47d44b96f8c Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sat, 15 Jun 2019 10:42:08 +0800 Subject: [PATCH] to3d to avoid warning --- src/along_with.scad | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/along_with.scad b/src/along_with.scad index 31b6ff39..1b780326 100644 --- a/src/along_with.scad +++ b/src/along_with.scad @@ -100,7 +100,8 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE") } module axis_angle_align_with_pts_init(a, s) { - angleyz = __angy_angz(points[0], points[1]); + angleyz = __angy_angz(__to3d(points[0]), __to3d(points[1])); + rotate([0, -angleyz[0], angleyz[1]]) rotate([90, 0, -90]) rotate(a)