Added oval_torus and torus2 with different parameterization
This commit is contained in:
parent
72400cf62c
commit
903569a9a2
|
@ -203,6 +203,17 @@ module torus(outerRadius, innerRadius)
|
||||||
rotate_extrude() translate([innerRadius+r,0,0]) circle(r);
|
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)
|
module triangle_pyramid(radius)
|
||||||
{
|
{
|
||||||
o=radius/2; //equivalent to radius*sin(30)
|
o=radius/2; //equivalent to radius*sin(30)
|
||||||
|
|
Loading…
Reference in a new issue