Skip to main content

Module picking

Module picking 

Source
Expand description

Ray-cast object picking.

Structs§

GpuPickHit
Result of a GPU object-ID pick pass.
PickHit
Result of a successful ray-cast pick against a scene object.
ProbeBinding
Per-object attribute binding for probe-aware picking.
RectPickResult
Result of a rectangular (rubber-band) pick.

Functions§

box_select
Select all visible objects whose world-space position projects inside a screen-space rectangle.
pick_rect
Sub-object (triangle / point) selection inside a screen-space rectangle.
pick_scene
Cast a ray against all visible viewport objects. Returns a PickHit for the nearest hit, or None if nothing was hit.
pick_scene_accelerated_with_probe
Like pick_scene_accelerated but also computes the scalar value at the hit point.
pick_scene_nodes
Cast a ray against all visible scene nodes. Returns a PickHit for the nearest hit.
pick_scene_nodes_with_probe
Like pick_scene_nodes but also computes the scalar value at the hit point.
pick_scene_with_probe
Like pick_scene but also computes the scalar attribute value at the hit point via barycentric interpolation (vertex attributes) or direct lookup (cell attributes).
screen_to_ray
Convert screen position (in viewport-local pixels) to a world-space ray.