Skip to content

Instantly share code, notes, and snippets.

@bryanduxbury
Created December 6, 2013 05:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanduxbury/7819001 to your computer and use it in GitHub Desktop.
Save bryanduxbury/7819001 to your computer and use it in GitHub Desktop.
module curved_triangle(r, pitch, separation, gap) {
assign(num_steps = 36)
assign(top_d = pitch - 2 * separation)
assign(bottom_d = triangle_tip_width)
assign(delta = top_d - bottom_d)
assign(d_incr = delta / (num_steps-1))
assign(b_incr=116/(num_steps - 1))
render()
for (i=[0:(num_steps-2)]) {
hull() {
rotate([0, 0, b_incr * i])
translate([r, 0, 0])
square(size=[top_d - d_incr * i, 0.01], center=true);
rotate([0, 0, b_incr * (i+1)])
translate([r, 0, 0])
square(size=[top_d - d_incr * (i+1), 0.01], center=true);
echo("blah", top_d - d_incr * (i+1));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment