Finding farthest node between 2 groups

Altair Community Member
Updated by Tamilvanan
Is there any API to find the farthest nodes between 2 node groups like we have to find the shortest node(hm_measureshortestdistance)?
Sort by:
1 - 4 of
41
- 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'

Altair Community Member
Updated by QuyNguyenDai
You can estimate simply as show in below picture : D = D_AB - (D_A + D_B)

Altair Community Member
Updated by QuyNguyenDai
Maybe some ideas:
No, there isn't.