From b559e7ebde81fec6504f69d35a24737047a192b1 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Wed, 21 Nov 2018 12:40:58 -0800 Subject: [PATCH] Fixed error in structure of sparse_strut3d() --- shapes.scad | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/shapes.scad b/shapes.scad index 790a2aa..53a188b 100644 --- a/shapes.scad +++ b/shapes.scad @@ -844,7 +844,16 @@ module sparse_strut3d(h=50, l=100, w=50, thick=3, maxang=40, strut=3, max_bridge zflip_copy(offset=-(zstep-strut)/2) { xflip_copy() { zrot(cross_ang) { - down(strut/2) cube([strut, cross_len, strut], center=true); + down(strut/2) { + cube([strut, cross_len, strut], center=true); + } + if (zreps>1) { + back(cross_len/2) { + zrot(-cross_ang) { + down(strut) upcube([strut, strut, zstep+strut], center=true); + } + } + } for (soff = [0 : supp_reps-1] ) { yflip_copy() { back(soff*supp_step) {