Merge pull request #53 from RyanBalfanz/patch-4

Fix misspelled local variable in egg() module
This commit is contained in:
Chow Loong Jin 2019-04-04 15:23:51 +08:00 committed by GitHub
commit a7be3d6236
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,11 +247,11 @@ module square_pyramid(base_x, base_y,height)
polyhedron(points=[[-w,-h,0],[-w,h,0],[w,h,0],[w,-h,0],[0,0,height]],triangles=[[0,3,2,1], [0,1,4], [1,2,4], [2,3,4], [3,0,4]]);
}
module egg(width, lenght){
module egg(width, length){
rotate_extrude()
difference(){
egg_outline(width, lenght);
translate([-lenght, 0, 0]) cube(2*lenght, center=true);
egg_outline(width, length);
translate([-length, 0, 0]) cube(2*length, center=true);
}
}