Distinguish Between Straight and Curved Lines - Grasshopper2024-03-28T22:49:59Zhttps://www.grasshopper3d.com/forum/topics/distinguish-between-straight-and-curved-lines?feed=yes&xn_auth=noYou can certainly convert the…tag:www.grasshopper3d.com,2017-10-08:2985220:Comment:18269812017-10-08T16:22:11.022ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>You can certainly convert the curves to text, then check to see if the text contains the words "Line" or "Linear". Since they have the substring "Lin" in common, you can compare against that and use Sift to separate out the linear from the non linear curves:…</p>
<p></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769328944?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769328944?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>You can certainly convert the curves to text, then check to see if the text contains the words "Line" or "Linear". Since they have the substring "Lin" in common, you can compare against that and use Sift to separate out the linear from the non linear curves:</p>
<p></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769328944?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769328944?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p> Thanks David, how would that…tag:www.grasshopper3d.com,2017-10-08:2985220:Comment:18268602017-10-08T13:49:14.022ZSaman Ziaiehttps://www.grasshopper3d.com/profile/SamanZiaie
<p>Thanks David, how would that work in the above context - once the curvature component is used?</p>
<p>Thanks David, how would that work in the above context - once the curvature component is used?</p> Once data goes into a panel,…tag:www.grasshopper3d.com,2017-10-08:2985220:Comment:18270132017-10-08T13:17:41.653ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>Once data goes into a panel, it becomes text. You should connect to your original curve instead.</p>
<p>Once data goes into a panel, it becomes text. You should connect to your original curve instead.</p> Hi guys, I just came across t…tag:www.grasshopper3d.com,2017-10-08:2985220:Comment:18267072017-10-08T12:37:46.811ZSaman Ziaiehttps://www.grasshopper3d.com/profile/SamanZiaie
<p>Hi guys, I just came across this and tried to apply it to a set of lines I want to distinguish curved from straight.</p>
<p></p>
<p>For some reason if I attach curve components to the dispatch A and B outputs, it says "Data Conversion failed from Text to Curve"</p>
<p></p>
<p>I can't find any other discussions that resolve this issue in this context - shouldn't I just be able to output curves from A and B?</p>
<p>Hi guys, I just came across this and tried to apply it to a set of lines I want to distinguish curved from straight.</p>
<p></p>
<p>For some reason if I attach curve components to the dispatch A and B outputs, it says "Data Conversion failed from Text to Curve"</p>
<p></p>
<p>I can't find any other discussions that resolve this issue in this context - shouldn't I just be able to output curves from A and B?</p> Danny, Deda,
Thank you for ta…tag:www.grasshopper3d.com,2011-10-07:2985220:Comment:4462902011-10-07T11:36:57.896ZOgnek Kcirokshttps://www.grasshopper3d.com/profile/OgnekKciroks
<p>Danny, Deda,</p>
<p>Thank you for taking your time.</p>
<p>The solutions are very smart.</p>
<p>Best,</p>
<p>Ognek</p>
<p>Danny, Deda,</p>
<p>Thank you for taking your time.</p>
<p>The solutions are very smart.</p>
<p>Best,</p>
<p>Ognek</p> I made sure that there was no…tag:www.grasshopper3d.com,2011-10-07:2985220:Comment:4462832011-10-07T11:26:31.081ZDanny Boyeshttps://www.grasshopper3d.com/profile/DannyBoyes
<p>I made sure that there was no distinguishable features in the category of referenced line with this method. So the input is all Referenced Planar Curves</p>
<p>I made sure that there was no distinguishable features in the category of referenced line with this method. So the input is all Referenced Planar Curves</p> Hey,
I like the both ways.…tag:www.grasshopper3d.com,2011-10-07:2985220:Comment:4463622011-10-07T11:15:45.032ZDedackelzuchthttps://www.grasshopper3d.com/profile/JohannesBeran
<p>Hey,</p>
<p> </p>
<p>I like the both ways. Dannys version I use always to get different members (more than 2) in sepreted branches. My way I use to filter one type out of many.</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768678551?profile=original"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768678551?profile=RESIZE_1024x1024" width="721"/></a></p>
<p>Hey,</p>
<p> </p>
<p>I like the both ways. Dannys version I use always to get different members (more than 2) in sepreted branches. My way I use to filter one type out of many.</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768678551?profile=original"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768678551?profile=RESIZE_1024x1024" width="721"/></a></p> [Curvature], [Create Set] and…tag:www.grasshopper3d.com,2011-10-07:2985220:Comment:4462692011-10-07T10:16:35.316ZDanny Boyeshttps://www.grasshopper3d.com/profile/DannyBoyes
<p>[Curvature], [Create Set] and [Member Index] could get you the results.</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768678370?profile=original"><img class="align-full" width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768678370?profile=RESIZE_1024x1024"/></a></p>
<p>[Curvature], [Create Set] and [Member Index] could get you the results.</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768678370?profile=original"><img class="align-full" width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768678370?profile=RESIZE_1024x1024"/></a></p>