Query extreme point

Bocaj22
Bocaj22 Altair Community Member
edited October 2022 in Community Q&A

Hello. I'd like to position a body parametrically based on the extreme point of another graphic/geometry. For example, align the low point of the body with a ground plane. Is it possible to query or reference this in Motionview? I know this can be done via Tcl commands in Hypermesh, but I cannot figure out a way in Motionview. Thanks.

Answers

  • Praful
    Praful
    Altair Employee
    edited October 2022

    Hello - Currently such a feature is not available in MotionView. How would you have done this in Hypermesh using TCL ?

    regards

    Praful

     

  • Bocaj22
    Bocaj22 Altair Community Member
    edited October 2022

    Praful,

     

    That's too bad, thanks for the response. In Hypermesh, there are a few ways. 

    hm_getboundingbox will get you the bounds of the geometry in x, y, and z. So it won't give you the exact point, but this would be enough for what I'm trying to do in MotionView.

    hm_measureshortestdistance can be used to find a point closest to a surface. Make this surface a large plane that's offset from the geometry, and it'll get the job done. 

    If you're working on a mesh, then you can loop through the nodes and query the coordinates.