Created
February 15, 2016 22:00
-
-
Save GilesBathgate/9dd1ab9d1a3216464d59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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