Skip to content

Instantly share code, notes, and snippets.

@GilesBathgate
Created February 15, 2016 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GilesBathgate/9dd1ab9d1a3216464d59 to your computer and use it in GitHub Desktop.
Save GilesBathgate/9dd1ab9d1a3216464d59 to your computer and use it in GitHub Desktop.
$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