From 903569a9a2ae9899805185af487402f864a7fbb8 Mon Sep 17 00:00:00 2001 From: Elmom Date: Wed, 7 Sep 2011 12:43:30 +0300 Subject: [PATCH] Added oval_torus and torus2 with different parameterization --- regular_shapes.scad | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/regular_shapes.scad b/regular_shapes.scad index 2be4bab..2818983 100644 --- a/regular_shapes.scad +++ b/regular_shapes.scad @@ -203,6 +203,17 @@ module torus(outerRadius, innerRadius) rotate_extrude() translate([innerRadius+r,0,0]) circle(r); } +module torus2(r1, r2) +{ + rotate_extrude() translate([r1,0,0]) circle(r2); +} + +module oval_torus(inner_radius, thickness=[0, 0]) +{ + rotate_extrude() translate([inner_radius+thickness[0]/2,0,0]) ellipse(width=thickness[0], height=thickness[1]); +} + + module triangle_pyramid(radius) { o=radius/2; //equivalent to radius*sin(30)