Skip to content
Snippets Groups Projects
Commit 0e6a1eb9 authored by fxk8y's avatar fxk8y :spider:
Browse files

Fix vertical center calculation

parent 886a936d
No related branches found
No related tags found
No related merge requests found
......@@ -366,14 +366,14 @@ module crossNPipe(width, height, length, radius, strength, N, center=false) {
epsilon = 0.001; // TODO: may need adjustment
tz = center ? -l/2 : 0;
tz = center ? h/2 : 0;
difference() {
for (rz=[0:360/N:360]) rotate([-90, 0, rz]) translate([0, 0, tz]) linear_extrude(l) {
translate([0, 0, tz]) difference() {
for (rz=[0:360/N:360]) rotate([-90, 0, rz]) linear_extrude(l) {
roundRect(w, h, r);
}
for (rz=[0:360/N:360]) rotate([-90, 0, rz])translate([0, 0, tz]) linear_extrude(l + epsilon) {
for (rz=[0:360/N:360]) rotate([-90, 0, rz]) linear_extrude(l + epsilon) {
roundRect(w - _str*2, h - _str*2, r - _str);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment