From c43423829b2f8776f066455a30cc6a67521f1e29 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Sat, 26 Jun 2021 22:23:29 -0700 Subject: [PATCH] Allow extrude_from_to() to accept 2D paths. --- paths.scad | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paths.scad b/paths.scad index ad1e8d1..9363d41 100644 --- a/paths.scad +++ b/paths.scad @@ -1010,7 +1010,10 @@ module jittered_poly(path, dist=1/512) { // xcopies(3) circle(3, $fn=32); // } module extrude_from_to(pt1, pt2, convexity, twist, scale, slices) { - assert( is_path([pt1,pt2],3), "The points should be 3d points"); + assert(is_vector(pt1)); + assert(is_vector(pt2)); + pt1 = point3d(pt1); + pt2 = point3d(pt2); rtp = xyz_to_spherical(pt2-pt1); translate(pt1) { rotate([0, rtp[2], rtp[1]]) {