[OpenSCAD] heart symbol

Torsten Paul Torsten.Paul at gmx.de
Sun May 3 08:08:16 EDT 2015


On 05/03/2015 01:12 PM, Ezra Reynolds wrote:
> Can also do it this way:
>
> module heart()
> {
>      // From Inkscape --> OpenSCAD
>
Or, welcome math :-) ...

// see http://mathworld.wolfram.com/HeartCurve.html
function heart(t) = [ 16 * pow(sin(t), 3), 13 * cos(t) - 5 * cos(2 * t) - 2 * cos(3 * t) - cos(4 * t) ];
polygon([ for (t = [0 : 360 ]) heart(t) ]);

ciao,
   Torsten.





More information about the Discuss mailing list