i have a certain problem that i am stuck on for few days.
Let’s say i have a given network of streets. No islands.
I want to filter out dead-end street lines at marked locations and join them in polylines. Every given dead-end street should be converted to single polyline.
My approach was:
Build a network from input lines.
(They were polylines originally, but exploded them to line segments.)
Find the indexes of given street-end nodes.
(Note: Not all network ends are dead-ends. Dead-ends are predefined.)
Look for next node in network. Check if the node valence is less than 3. Continue searching until ’valence >= 3’ condition is met.
Append nodes from above in proper branches in correct order. Make a polyline.
Or find corresponding network line of these nodes. Branch them per initial dead-end points. Join them.
Since i dont speak any language, my only options were Anemone and Hoopsnake. Have tried SpaceSyntax components as well. Unfortunately i was constantly hitting the wall, with no decent results.
For any advice or solution (scripted or not) i would be very, very thankfull.
NetWork.gh (11.2 KB)