Author:Ralph Wessel
Posted: Wed Feb 10, 2016 5:24 pm (GMT+1)
I don't know if there is a shortcut to achieving this. You could get the 3D body of the mesh from ModelAccess or the older 3D Manager (ACAPI_Element_Get3DInfo etc). You could then determine which face lies directly under the point of interest and the z level on the plane at that point.
_________________
Ralph Wessel
Cadimage
Posted: Wed Feb 10, 2016 5:24 pm (GMT+1)
vuego wrote: |
My Addon creates API_Element (GDL object) on user specified coordinates acquired with APIIo_GetPointID. X and Y coordinates are ok, Z coordinate is always zero. I would like to use gravity when picking a point on eg Mesh so Z coordinate gets populated too. |
I don't know if there is a shortcut to achieving this. You could get the 3D body of the mesh from ModelAccess or the older 3D Manager (ACAPI_Element_Get3DInfo etc). You could then determine which face lies directly under the point of interest and the z level on the plane at that point.
_________________
Ralph Wessel
Cadimage