<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Here's a quick hack-- didn't check it for bugs.</span></div><div><span><br></span></div><div><span>The real solution would be to add a "-c" flag to [plot] to draw the trace back to element </span><span>0:</span></div><div><br><span></span></div><div><span>[plot -c etc.]</span></div><div><br><span></span></div><div><span>And maybe "-f COLOR" to draw the trace back to element 0 and fill the inside.</span></div><div><span>(Although that word probably </span><span>be a bigger change.)</span></div><div><br><span></span></div><div><span>-Jonathan<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size:
 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Scott McCoid &lt;mccoid.scott@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> pd-list@iem.at<br><b><span style="font-weight: bold;">Sent:</span></b> Sunday, October 2, 2011 2:13 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [PD] Data structure array with last element pointing back to first element<br></font><br><div id="yiv1206687913">Hi,&nbsp;<div><br></div><div>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.&nbsp;</div>
<div><br></div><div>I basically just want there to be another line to connect the 4th element of the array back to the first.</div><div><br></div><div>Is it possible to use a [drawpolygon] object where each of the corners would be another data structure?&nbsp;</div>
<div><br></div><div>Thanks!</div><div><br></div><div>Scott</div>
</div><br>_______________________________________________<br><a ymailto="mailto:Pd-list@iem.at" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div></div></blockquote></div></div></body></html>