Whoa, this is great! Thanks Jonathan! <div><br></div><div>Wouldn&#39;t adding the &quot;-c&quot; flag make a curved shape between each point?<br><br><div class="gmail_quote">On Sun, Oct 2, 2011 at 4:08 PM, Jonathan Wilkes <span dir="ltr">&lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt">
<div><span>Here&#39;s a quick hack-- didn&#39;t check it for bugs.</span></div><div><span><br></span></div><div><span>The real solution would be to add a &quot;-c&quot; 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 &quot;-f COLOR&quot; 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;<a href="mailto:mccoid.scott@gmail.com" target="_blank">mccoid.scott@gmail.com</a>&gt;<br>
<b><span style="font-weight:bold">To:</span></b> <a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a><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><div><div></div><div class="h5"><br><div>Hi, <div><br></div><div>I&#39;ve recently started playing around with Pd&#39;s data structures, and I need some help. It&#39;s relatively straightforward to create polygons and arrays of polygons. Though, I&#39;d like to create a closed polygon, where each vertex is another data structure. I&#39;ve attached a patch of what I have so far. </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? </div>

<div><br></div><div>Thanks!</div><div><br></div><div>Scott</div>
</div><br></div></div>_______________________________________________<br><a href="mailto:Pd-list@iem.at" target="_blank">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></div></blockquote></div><br></div>