mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 21:58:27 +01:00
Change default anchor for tube() to CENTER.
This commit is contained in:
parent
b5e11b9176
commit
0dfec1e8ff
@ -1547,7 +1547,7 @@ module tube(
|
|||||||
assert(ir1 <= r1, "Inner radius is larger than outer radius.");
|
assert(ir1 <= r1, "Inner radius is larger than outer radius.");
|
||||||
assert(ir2 <= r2, "Inner radius is larger than outer radius.");
|
assert(ir2 <= r2, "Inner radius is larger than outer radius.");
|
||||||
sides = segs(max(r1,r2));
|
sides = segs(max(r1,r2));
|
||||||
anchor = get_anchor(anchor, center, BOT, BOT);
|
anchor = get_anchor(anchor, center, BOT, CENTER);
|
||||||
attachable(anchor,spin,orient, r1=r1, r2=r2, l=h) {
|
attachable(anchor,spin,orient, r1=r1, r2=r2, l=h) {
|
||||||
zrot(realign? 180/sides : 0) {
|
zrot(realign? 180/sides : 0) {
|
||||||
difference() {
|
difference() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user