[OpenSCAD] heart symbol

Yvette S. Hirth, CCP, CDP yvette at dbtgroup.com
Sun May 3 10:14:14 EDT 2015


On 05/03/2015 05:08 AM, Torsten Paul wrote:
> 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) ]);

now we're talking!
yvette




More information about the Discuss mailing list