Added 2d ring

This commit is contained in:
Elmom 2012-01-30 04:29:39 +02:00
parent 5eb4cf289a
commit 3faafdd93e

View file

@ -76,6 +76,13 @@ module dodecagon(radius)
reg_polygon(12,radius); reg_polygon(12,radius);
} }
module ring(inside_diameter, thickness){
difference(){
circle(r=(inside_diameter+thickness*2)/2);
circle(r=inside_diameter/2);
}
}
module ellipse(width, height) { module ellipse(width, height) {
scale([1, height/width, 1]) circle(r=width/2); scale([1, height/width, 1]) circle(r=width/2);
} }