pyux.identify_artificial_coordinate - pytha-3d-cad/pytha-lua-api GitHub Wiki
Takes a list of 3D coordinates and identifies which of these coordinates is at the given cursor position.
pyui.identify_artificial_coordinate(coos_vp, coordinate_list)
Parameters
| Type | Description | |
|---|---|---|
coos_vp |
{u, v} |
Normalized viewport coordinates of the mouse cursor. |
coordinate_list |
{{x,y,z}, ...} |
A list of 3D coordinates. |
Return value
| Type | Description |
|---|---|
integer |
Index of the identified artificial coordinate from coordinate_list. 0 if no coordinate was identified. |
Notes:
The coos_vp coordinates are solely to be received from one of the mous picking and dragging handler function calls such as set_on_left_click_handler or set_on_left_dragstart_handler.
See also
pyux, identify_part, identify_plane, set_on_left_click_handler, set_on_right_click_handler, set_on_left_dragstart_handler, set_on_left_dragmove_handler, set_on_left_dragend_handler