[OpenSCAD] Help with polygon() function

cn145912 neil.penning+openscad at gmail.com
Tue Apr 21 07:41:24 EDT 2015


I wrote some code to generate a polygon, it generates these two lists

point = [[-36.6025, 136.603], [-136.603, 36.6025], [-100, -100], [36.6025,
-136.603], [136.603, -36.6025], [100, 100], [-60, 60], [-81.9615, -21.9615],
[-21.9615, -81.9615], [60, -60], [81.9615, 21.9615], [21.9615, 81.9615]]
path = [0, 6, 1, 7, 2, 8, 3, 9, 4, 10, 5, 11]

but for some reason, when I try

polygon(points=point, paths=path)

nothing is displayed. Could someone take a look at the lists and tell my why
they don't work?



--
View this message in context: http://forum.openscad.org/Help-with-polygon-function-tp12453.html
Sent from the OpenSCAD mailing list archive at Nabble.com.




More information about the Discuss mailing list