forked from josefprusa/PrusaMendel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: GregFrost <gregfrost1@bigpond.com>
- Loading branch information
GregFrost
committed
Jul 13, 2011
1 parent
0f1f4f4
commit cca9255
Showing
6 changed files
with
2,197 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import_stl("gear6_outer.stl"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
heart(); | ||
|
||
module heart ( | ||
width=20, | ||
resolution = 24) | ||
{ | ||
bulb=1.2; | ||
squash = 0.65; | ||
stretch = 1.2; | ||
|
||
$fn=resolution*2; | ||
|
||
scale ([1,squash,stretch]*width/2) | ||
|
||
union() | ||
{ | ||
rotate ([0,90,0]) | ||
union() | ||
{ | ||
for (x=[0:resolution-1]) | ||
assign(r1=abs((x/resolution)*(x/resolution)-1), | ||
r2=abs(((x+1)/resolution)*((x+1)/resolution)-1)) | ||
{ | ||
translate([x/resolution,0,0]) | ||
rotate([0,90,0]) | ||
cylinder ( | ||
r1=r1, | ||
r2=r2, | ||
h=1/resolution); | ||
} | ||
|
||
} | ||
|
||
difference () | ||
{ | ||
union () | ||
{ | ||
scale ([1,1,sqrt(pow(bulb/2,2)-pow(1-bulb/2,2))-0.04]) | ||
sphere (r=1); | ||
|
||
translate([bulb/2-1,0,-0.04]) | ||
rotate ([0,45,0]) | ||
translate([1-bulb/2,0,0]) | ||
rotate_extrude (convexity=10) | ||
translate([1-bulb/2,0,0]) | ||
circle (r=bulb/2); | ||
|
||
translate([1-bulb/2,0,-0.04]) | ||
rotate ([0,-45,0]) | ||
translate([bulb/2-1,0,0]) | ||
rotate_extrude (convexity=10) | ||
translate([1-bulb/2,0,0]) | ||
circle (r=bulb/2); | ||
|
||
} | ||
|
||
translate([-1,-1,-2.00-0.0001]) | ||
#cube ([2,2,2]); | ||
} | ||
} | ||
} |
Oops, something went wrong.