Skip to content

pyux.identify_coordinate_in_area

fabian-flassig edited this page Apr 13, 2026 · 2 revisions

Tests whether the cursor position is within a given area.

pyux.identify_coordinate_in_area(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 defining a polygonal area.

Return value

Type Description
boolean true if the projection of coos_vp is within the given area, false if outside of the area.

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_coordinate, 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 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

Clone this wiki locally