Finding farthest node between 2 groups

User: "Tamilvanan"
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)?

 

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "tinh"
    Altair Community Member
    Updated by tinh

    No, there isn't.

     

    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

    You can estimate simply as show in below picture D = D_AB - (D_A + D_B)

    dist.png.58e5e9305f100a29feebd22e0247e3f2.png

     

    User: "Tamilvanan"
    Altair Community Member
    OP
    Updated by Tamilvanan

    How can i do the same in script?

     

    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

    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'