From 2e84cc64a7af194fce685f8c212e940fc2f2a5ad Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Tue, 22 Jun 2021 20:04:33 -0700 Subject: [PATCH] Fix for issue #581 --- walls.scad | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/walls.scad b/walls.scad index 973bba8..1284fa7 100644 --- a/walls.scad +++ b/walls.scad @@ -91,10 +91,10 @@ module thinning_wall(h=50, l=100, thick=5, ang=30, braces=false, strut, wall, an wall = is_num(wall)? wall : thick/2; bevel_h = strut + (thick-wall)/2/tan(ang); - cp1 = circle_2tangents([0,0,h/2], [l2/2,0,h/2], [l1/2,0,-h/2], r=strut)[0]; - cp2 = circle_2tangents([0,0,h/2], [l2/2,0,h/2], [l1/2,0,-h/2], r=bevel_h)[0]; - cp3 = circle_2tangents([0,0,-h/2], [l1/2,0,-h/2], [l2/2,0,h/2], r=bevel_h)[0]; - cp4 = circle_2tangents([0,0,-h/2], [l1/2,0,-h/2], [l2/2,0,h/2], r=strut)[0]; + cp1 = circle_2tangents([0,0,+h/2], [l2/2,0,+h/2], [l1/2,0,-h/2], r=strut)[0]; + cp2 = circle_2tangents([0,0,+h/2], [l2/2,0,+h/2], [l1/2,0,-h/2], r=bevel_h)[0]; + cp3 = circle_2tangents([0,0,-h/2], [l1/2,0,-h/2], [l2/2,0,+h/2], r=bevel_h)[0]; + cp4 = circle_2tangents([0,0,-h/2], [l1/2,0,-h/2], [l2/2,0,+h/2], r=strut)[0]; z1 = h/2; z2 = cp1.z; @@ -116,7 +116,7 @@ module thinning_wall(h=50, l=100, thick=5, ang=30, braces=false, strut, wall, an size = [l1, thick, h]; attachable(anchor,spin,orient, size=size, size2=[l2,thick]) { - union() { + zrot(90) { polyhedron( points=[ [-x4, -y1, -z1],