From f8ee274049666240bb5e3ba00d40ca91507e77d9 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Sun, 12 May 2019 03:29:08 -0700 Subject: [PATCH] Fixed 2D rot(from,ro) --- transforms.scad | 2 ++ 1 file changed, 2 insertions(+) diff --git a/transforms.scad b/transforms.scad index eb593b2..5a8adfa 100644 --- a/transforms.scad +++ b/transforms.scad @@ -189,6 +189,8 @@ module rot(a=0, v=undef, cp=undef, from=undef, to=undef, reverse=false) translate(cp) rot(a=a, v=v, from=from, to=to, reverse=reverse) translate(-cp) children(); } else if (!is_undef(from)) { assert(!is_undef(to), "`from` and `to` should be used together."); + from = point3d(from); + to = point3d(to); axis = vector_axis(from, to); ang = vector_angle(from, to); if (ang < 0.0001 && a == 0) {