Turn spline into straigh line and arcs

unhandled

#1

Hi there!
I have a kind of big tree like that :

it is all made of splines that I have all divided like that :
arbre-02
arbre-03

this overall shape will change many times before its finaly going to be made in the workshop.

What I want is to select all the curves and sort them to be able to convert the curviest one in arcs and the straighest ones in straigh lines.

I have already did it manually with 2 different grasshopper file :
turn it straight :
straight
turn it in arc :

I’am not very old on this software, so I will appreciate any help allowing me to add a “sort tool” to the actual work I already done who will ask grasshopper something like :
if it is curvy more theim x degree convert it as an arc, and under x degree convert it in straight line.


#2

line_or_arc_sg.gh (9.1 KB)