$fn = 32; | |
w = 0.5; | |
n = 4; | |
R = 2; | |
r = R / cos(180/n); | |
difference() { | |
// Chain hull of circles same width as filament at nozzle positions | |
for(i = [0 : n - 1]) | |
hull() { | |
rotate(i * 360 / n) | |
translate([r + w / (2 * cos(180 / n)), 0]) | |
circle(d = w); | |
rotate((i + 1) * 360 / n) | |
translate([r + w / (2 * cos(180 / n)), 0]) | |
circle(d = w); | |
} | |
// | |
// Constant width path that gives the same interior shape | |
// | |
difference() { | |
offset(w) circle(r = r, $fn = n); | |
circle(r = r, $fn = n); | |
} | |
} | |
translate([r+w/2,0,0])circle(d=w); | |
s=R*2; | |
rotate(45)square([s,s],true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment