discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Happy Holidays! SVG diddy (2d)

K
kipplebits
Thu, Dec 28, 2017 1:43 AM

Hello all, it's been awhile, I was recently trying to generate some complex
curves in Gimp, only to realize there is not a good method in built to Gimp.
Happily I have discovered openSCAD has an export to svg. I did a little test
path generated with a for loop, and thought I would share it here. Happy
Holidays!

the link: https://www.thingiverse.com/thing:2734060

it's not complicated...

my_points = [for(i=[0:1:3600])
[(50cos(i/10)+5cos(90i/10)), (50sin(i/10)+5sin(90i/10))]
];

polygon(points=my_points);

...although I'm happy to find a method of procedurally generating SVGs(and
another reason to use openSCAD)

Thank You Santa!

http://forum.openscad.org/file/t2116/happy-holidays-openSCAD.png
http://forum.openscad.org/file/t2116/happy-holidays-gimp.png
http://forum.openscad.org/file/t2116/happy-holidays-gif-black.gif

--
Sent from: http://forum.openscad.org/

Hello all, it's been awhile, I was recently trying to generate some complex curves in Gimp, only to realize there is not a good method in built to Gimp. Happily I have discovered openSCAD has an export to svg. I did a little test path generated with a for loop, and thought I would share it here. Happy Holidays! the link: https://www.thingiverse.com/thing:2734060 it's not complicated... my_points = [for(i=[0:1:3600]) [(50*cos(i/10)+5*cos(90*i/10)), (50*sin(i/10)+5*sin(90*i/10))] ]; polygon(points=my_points); ...although I'm happy to find a method of procedurally generating SVGs(and another reason to use openSCAD) Thank You Santa! <http://forum.openscad.org/file/t2116/happy-holidays-openSCAD.png> <http://forum.openscad.org/file/t2116/happy-holidays-gimp.png> <http://forum.openscad.org/file/t2116/happy-holidays-gif-black.gif> -- Sent from: http://forum.openscad.org/