Kuka plug-in pavillion - Grasshopper2024-03-28T15:59:39Zhttps://www.grasshopper3d.com/forum/topics/kuka-plug-in-pavillion?commentId=2985220%3AComment%3A1675500&feed=yes&xn_auth=noAdded some simple smoothing t…tag:www.grasshopper3d.com,2017-01-20:2985220:Comment:16755942017-01-20T18:12:54.531ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Added some simple smoothing to the resulting polylines, then divided them by distance and put cylinders (pillars) on each point:…</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769232611?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769232611?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769232681?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769232681?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>Added some simple smoothing to the resulting polylines, then divided them by distance and put cylinders (pillars) on each point:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769232611?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769232611?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769232681?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769232681?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p> Forgot the code.tag:www.grasshopper3d.com,2017-01-20:2985220:Comment:16755002017-01-20T17:17:36.781ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Forgot the code.</p>
<p>Forgot the code.</p> I don't have all the plugins…tag:www.grasshopper3d.com,2017-01-20:2985220:Comment:16754962017-01-20T17:15:19.825ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>I don't have all the plugins you used and didn't understand all the code you had in place...</p>
<p>But I did have a play with how to extract lines from your cat image using 'Image Sampler'. I did it this way, with one slider for 'Resolution', another for 'Scale', the X & Y 'Image Sampler' domains restored to their defaults (0..1), and a 'Threshold' slider to filter extraneous points:…</p>
<p></p>
<p>I don't have all the plugins you used and didn't understand all the code you had in place...</p>
<p>But I did have a play with how to extract lines from your cat image using 'Image Sampler'. I did it this way, with one slider for 'Resolution', another for 'Scale', the X & Y 'Image Sampler' domains restored to their defaults (0..1), and a 'Threshold' slider to filter extraneous points:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769232261?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769232261?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p></p>
<p>You can see the effect of 'Threshold' by zooming in; too many points make it hard to interpret:<a href="http://storage.ning.com/topology/rest/1.0/file/get/2769232468?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769232468?profile=original" width="658" class="align-full"/></a></p>
<p></p>
<p>To make curves from the points, I used an Anemone loop. 'Slow' and 'Fast' do the same thing. Start with the first point and find its 'Closest Point (CP)'. The 'C (Cloud of points to search)' must not include the point you are searching for, hence the 'Cull Index' component.<a href="http://storage.ning.com/topology/rest/1.0/file/get/2769232497?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769232497?profile=RESIZE_1024x1024" width="721" class="align-full"/></a>The last step consists of ignoring curve segments that are "too long", meaning the points are far apart:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769232921?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769232921?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769232878?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769232878?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769233035?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769233035?profile=RESIZE_1024x1024" width="721" class="align-full"/></a>Obviously a rather rough approximation of the cat image. Seems to me that this needs to be improved before moving on to place columns evenly along those curves.</p>
<p></p>
<p>As always, the 'Image Sampler' is lost when saving a copy of the code, so the attached is useless unless you copy/paste the 'Image Sampler' from your original code - and remember to reset its X & Y domains to the default "0.0 To 1.0". This is <strong>EXTREMELY ANNOYING!!!</strong></p>