--- Isidro Gonzalez isidro_gonsoy@yahoo.com wrote:
Date: Wed, 21 Nov 2007 13:44:20 -0800 (PST) From: Isidro Gonzalez isidro_gonsoy@yahoo.com Subject: Drawing lines in GEM To: pd-list@iem.at
Hello: To my knowledge, there are two GEM objects capable to draw a polygon with lines: 1-polygon 2-curve But both are initialized with the number of points of the polygon or curve and you have to send them as many messages for each point(XYZ) as inlets they have. Is there a way to workaround this to avoid a "gigantic spider" of messages if I want to draw (and re-draw) a polygon, say of 50 points...? I mean an object that can draw a curve of any points and accepts a list with ALL the points in the curve... Should exist, but I am not able to find it. Any help will be appreciated. Isi
____________________________________________________________________________________ Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs
hi,
Isidro Gonzalez a écrit :
--- Isidro Gonzalez isidro_gonsoy@yahoo.com wrote:
Date: Wed, 21 Nov 2007 13:44:20 -0800 (PST) From: Isidro Gonzalez isidro_gonsoy@yahoo.com Subject: Drawing lines in GEM To: pd-list@iem.at
Hello: To my knowledge, there are two GEM objects capable to draw a polygon with lines: 1-polygon 2-curve But both are initialized with the number of points of the polygon or curve and you have to send them as many messages for each point(XYZ) as inlets they have. Is there a way to workaround this to avoid a "gigantic spider" of messages if I want to draw (and re-draw) a polygon, say of 50 points...? I mean an object that can draw a curve of any points and accepts a list with ALL the points in the curve... Should exist, but I am not able to find it. Any help will be appreciated. Isi
controling polygon point coordinates wouldn't be easy at all with messages only. I believe that using a matrix would make this task simplier. If you want to modify in real time the number of points of those objects, one solution is about using dynamic patching. You could try also to use simple curves, and give them the coordinates of the polygon.