Added an egg outline

This commit is contained in:
Elmom 2011-01-08 12:27:28 +02:00
parent a95c75faea
commit 8d0d254eb5

View file

@ -57,6 +57,16 @@ module ellipsoid(w, h, center = false) {
scale([1, h/w, 1]) sphere(r=w/2, center=center); scale([1, h/w, 1]) sphere(r=w/2, center=center);
} }
module egg_outline(width=5, length=7){
union(){
difference(){
ellipse(width, 2*length-width, center=true);
translate([0, length/2, 0]) square(length, width, center=true);
}
circle(r=width/2, center=true);
}
}
// wall is wall thickness // wall is wall thickness
module tube(height, radius, wall, center = false) { module tube(height, radius, wall, center = false) {
difference() { difference() {
@ -143,3 +153,5 @@ module dislocateBox(w, h, d) {
// Tests // Tests
//module test2D_ellipse(){ellipse(10, 5);} //module test2D_ellipse(){ellipse(10, 5);}
module test_ellipsoid(){ellipsoid(10, 5);} module test_ellipsoid(){ellipsoid(10, 5);}
//module test2D_egg_outline(){egg_outline();}