Added rcicle, which calculates ideal details for 3d circle printing.

Signed-off-by: Tony Tkáčik <tonydamage@gmail.com>
This commit is contained in:
Tony Tkáčik 2016-10-13 12:48:14 +02:00
parent 9d7a1d143c
commit 80b6138367
2 changed files with 13 additions and 0 deletions

2
detail-config.scad Normal file
View file

@ -0,0 +1,2 @@
CURVE_POLYGON_LENGTH=3; // Ideal for 3D Printing

11
scad-common.scad Normal file
View file

@ -0,0 +1,11 @@
include <detail-config.scad>;
module move(x=0,y=0,z=0) {
translate([x,y,z]) children();
}
function circle_details(r) = round(3.1415*r*2/CURVE_POLYGON_LENGTH);
module rcircle(r) {
circle(r,$fn=circle_details(r));
}