I have a polygon made up of 6 curves. Visually I see it as if it is made up of 4 sides.
So in the end, I want to make a Dictionary that groups 6 curves into 4 based on their angle difference.
if Angle crv01-02 < 90 then change group
if Angle crv01-02 > 90 then keep in same group
To make things clear for this shape, the dictionary should be :
key - value
a - crv01
b - crv02
c - crv03, 04, 05
d - crv06-07
Another point : I am also not sure how revit measure angles between 2 lines. Ideally, if angle btw 2 lines is measured clockwise ( as in drawing Protector ) , then I would group them so
if angle btw line1 - 2 is 0-135° change group
if angle btw line1 - 2 is 135-225° same group
if angle btw line1 - 2 is 225-360° change group
Any idea how to sort curves into dictionary based on angles? at the moment I have this graph. Any help would be wonderful
thats weard stuff …
do you try to wheel naming by the angles that you get feeded?
Here is an approach (to be checked)
collection of angles (Node and function solution)
and dictionary formation
for (i in 0..(DSCore.List.Count(Pt_ut)-4))
//Have fun with DesignScript (Thanks M. EdSonMatt)
for (i in 0..(DSCore.List.Count(a)-1))
for (i in 1..(k-1))
10 aout forum anglais rep2.dyn (67.1 KB)
Could the Line.Direction Node be of help here?