From 66521f2ecd5d75fcbda2bce3053f2f4f95e14ab9 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Sun, 26 May 2019 11:48:41 -0700 Subject: [PATCH] Fixed anchoring in walls.scad --- walls.scad | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/walls.scad b/walls.scad index ebf499f..89a2368 100644 --- a/walls.scad +++ b/walls.scad @@ -37,8 +37,9 @@ module narrowing_strut(w=10, l=100, wall=5, ang=30, anchor=BOTTOM, spin=0, orient=UP) { h = wall + w/2/tan(ang); - size = [w, h, l]; + size = [w, l, h]; orient_and_anchor(size, orient, anchor, spin=spin, chain=true) { + xrot(90) fwd(h/2) { linear_extrude(height=l, center=true, slices=2) { back(wall/2) square([w, wall], center=true); @@ -286,7 +287,7 @@ module thinning_triangle(h=50, l=100, thick=5, ang=30, strut=5, wall=3, diagonly { dang = atan(h/l); dlen = h/sin(dang); - size = [thick, h, l]; + size = [thick, l, h]; orient_and_anchor(size, orient, anchor, spin=spin, center=center, noncentered=BOTTOM+FRONT, chain=true) { difference() { union() {