mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-04 03:09:45 +00:00
Fix for #1008: rect_tube(shift=)
This commit is contained in:
parent
1257b9b936
commit
bda046636d
1 changed files with 15 additions and 14 deletions
|
@ -969,21 +969,22 @@ module rect_tube(
|
||||||
assert(isize2.y < size2.y, "Inner size is larger than outer size.");
|
assert(isize2.y < size2.y, "Inner size is larger than outer size.");
|
||||||
anchor = get_anchor(anchor, center, BOT, BOT);
|
anchor = get_anchor(anchor, center, BOT, BOT);
|
||||||
attachable(anchor,spin,orient, size=[each size1, h], size2=size2, shift=shift) {
|
attachable(anchor,spin,orient, size=[each size1, h], size2=size2, shift=shift) {
|
||||||
diff("_H_o_L_e_")
|
down(h/2) {
|
||||||
|
difference() {
|
||||||
prismoid(
|
prismoid(
|
||||||
size1, size2, h=h, shift=shift,
|
size1, size2, h=h, shift=shift,
|
||||||
rounding=rounding, rounding1=rounding1, rounding2=rounding2,
|
rounding=rounding, rounding1=rounding1, rounding2=rounding2,
|
||||||
chamfer=chamfer, chamfer1=chamfer1, chamfer2=chamfer2,
|
chamfer=chamfer, chamfer1=chamfer1, chamfer2=chamfer2,
|
||||||
anchor=CTR
|
anchor=BOT
|
||||||
) {
|
);
|
||||||
children();
|
down(0.01) prismoid(
|
||||||
tag("_H_o_L_e_") prismoid(
|
isize1, isize2, h=h+0.02, shift=shift,
|
||||||
isize1, isize2, h=h+0.05, shift=shift,
|
|
||||||
rounding=irounding, rounding1=irounding1, rounding2=irounding2,
|
rounding=irounding, rounding1=irounding1, rounding2=irounding2,
|
||||||
chamfer=ichamfer, chamfer1=ichamfer1, chamfer2=ichamfer2,
|
chamfer=ichamfer, chamfer1=ichamfer1, chamfer2=ichamfer2,
|
||||||
anchor=CTR
|
anchor=BOT
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
children();
|
children();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue