[PD] Data structure array with last element pointing back to first element

Scott McCoid mccoid.scott at gmail.com
Sun Oct 2 20:13:47 CEST 2011


I've recently started playing around with Pd's data structures, and I need
some help. It's relatively straightforward to create polygons and arrays of
polygons. Though, I'd like to create a closed polygon, where each vertex is
another data structure. I've attached a patch of what I have so far.

I basically just want there to be another line to connect the 4th element of
the array back to the first.

Is it possible to use a [drawpolygon] object where each of the corners would
be another data structure?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20111002/c12b7af1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shape-datastruct.pd
Type: application/octet-stream
Size: 1727 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20111002/c12b7af1/attachment.obj>

More information about the Pd-list mailing list