Divide Distance - Grasshopper2024-03-28T15:00:28Zhttps://www.grasshopper3d.com/forum/topics/divide-distance?feed=yes&xn_auth=noOh sure you're right,I misrea…tag:www.grasshopper3d.com,2013-11-24:2985220:Comment:9633162013-11-24T17:16:00.470ZBenjamin Felbrichhttps://www.grasshopper3d.com/profile/BenjaminFelbrich
<p>Oh sure you're right,<br/>I misread the divide distance with the divide length component.<br/>I'm not very sure, but did you think of applying "divide length" to a derivative of your curve? Just an idea, but since it represents information about the curvature of your curve there might be a solution to the problem..</p>
<p>Oh sure you're right,<br/>I misread the divide distance with the divide length component.<br/>I'm not very sure, but did you think of applying "divide length" to a derivative of your curve? Just an idea, but since it represents information about the curvature of your curve there might be a solution to the problem..</p> The Subcurve method would be…tag:www.grasshopper3d.com,2013-11-21:2985220:Comment:9615972013-11-21T20:34:49.197ZGabe Krausehttps://www.grasshopper3d.com/profile/GabrielKrause
<p>The Subcurve method would be great if we wanted to divide distances along the curves length. In fact the Dash Pattern component could work well for that too. But those provides different results than the "line of sight" division that the Divide Distance component provides.</p>
<p>Yeah, you're right about how GH works, same command on each item until the list ends.</p>
<p>I just can't think of any way to do what I need without introducing some form of recursion like Hoopsnake. It would be…</p>
<p>The Subcurve method would be great if we wanted to divide distances along the curves length. In fact the Dash Pattern component could work well for that too. But those provides different results than the "line of sight" division that the Divide Distance component provides.</p>
<p>Yeah, you're right about how GH works, same command on each item until the list ends.</p>
<p>I just can't think of any way to do what I need without introducing some form of recursion like Hoopsnake. It would be nice if Divide Distance could have a mode to accept a list of distances much like Dash Pattern does. Thus, the feature request.</p>
<p>The Curve to Polyline component seems like it could also be adapted to create a polyline with a list of specified segment lengths. But I haven't been able to accomplish what I need with that either.</p> Actually what you discovered…tag:www.grasshopper3d.com,2013-11-20:2985220:Comment:9609792013-11-20T19:19:15.463ZBenjamin Felbrichhttps://www.grasshopper3d.com/profile/BenjaminFelbrich
<p>Actually what you discovered upon exploration is exactly what the command description tells about the way the component works. You can easily and precisely retrieve subcurves by creating a list of consecutive domains (don't forget to divide by the length of the curve) and appliing it to the command "SubCurve".<br></br><br></br>According to the way GH works, it's likely to happen, that when you give a list of values to a command (as you did with the lengthes) it executes the same command over and…</p>
<p>Actually what you discovered upon exploration is exactly what the command description tells about the way the component works. You can easily and precisely retrieve subcurves by creating a list of consecutive domains (don't forget to divide by the length of the curve) and appliing it to the command "SubCurve".<br/><br/>According to the way GH works, it's likely to happen, that when you give a list of values to a command (as you did with the lengthes) it executes the same command over and over again until your longest list of inputs is over.</p>