mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-03-09 02:39:47 +00:00
Fixed error in structure of sparse_strut3d()
This commit is contained in:
parent
05d073f071
commit
b559e7ebde
1 changed files with 10 additions and 1 deletions
11
shapes.scad
11
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) {
|
zflip_copy(offset=-(zstep-strut)/2) {
|
||||||
xflip_copy() {
|
xflip_copy() {
|
||||||
zrot(cross_ang) {
|
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] ) {
|
for (soff = [0 : supp_reps-1] ) {
|
||||||
yflip_copy() {
|
yflip_copy() {
|
||||||
back(soff*supp_step) {
|
back(soff*supp_step) {
|
||||||
|
|
Loading…
Reference in a new issue