Finding farthest node between 2 groups
Tamilvanan
Altair Community Member
Is there any API to find the farthest nodes between 2 node groups like we have to find the shortest node(hm_measureshortestdistance)?
0
Answers
-
No, there isn't.
0 -
You can estimate simply as show in below picture : D = D_AB - (D_A + D_B)
0 -
How can i do the same in script?
0 -
Maybe some ideas:
- Compute mean (geometrical) node N1 of Group_1
- Compute mean node N2 of Group_2
- Compute the line (Delta) passing by N1 & N2
- On the line Delta, choose two Point A & B which covers two groups.
- Compute the distance AB by using their coordinates
- Compute the distance D_A & D_B thanks to 'hm_measureshortestdistance'
0