mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-06 04:09:47 +00:00
Fix right_triangle ORIENT_Z
This commit is contained in:
parent
d236fbf640
commit
7d5e2c3a1d
1 changed files with 4 additions and 4 deletions
|
@ -360,11 +360,11 @@ module right_triangle(size=[1, 1, 1], orient=ORIENT_Y, anchor=ALLNEG, center=und
|
||||||
}
|
}
|
||||||
} else if (orient == ORIENT_Z) {
|
} else if (orient == ORIENT_Z) {
|
||||||
ang = atan2(size.x, size.y);
|
ang = atan2(size.x, size.y);
|
||||||
masksize = [norm([size.x,size.y]), size.y, size.z] + [1,1,1];
|
masksize = [size.y, norm([size.x,size.y]), size.z] + [1,1,1];
|
||||||
zrot(-ang) {
|
zrot(ang) {
|
||||||
difference() {
|
difference() {
|
||||||
zrot(ang) cube(size, center=true);
|
zrot(-ang) cube(size, center=true);
|
||||||
back(masksize.y/2) cube(masksize, center=true);
|
right(masksize.x/2) cube(masksize, center=true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue