You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: py/source/basics/interactive_UIs_and_animation.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -413,15 +413,16 @@ A pick query returns a combined struct with info such as what structure was clic
413
413
414
414
```python
415
415
classPickResult:
416
-
self.is_hit =# did we hit anything?
417
-
self.structure_type_name =# structure type which was hit, like "Point Cloud"
418
-
self.structure_name =# name of structure which was hit, like "my_points"
419
-
self.screen_coords =# coordinates of the query location
420
-
self.buffer_inds =# render buffer indices of the query location
421
-
self.position =# 3d position which was hit, in world space
422
-
self.depth =# depth to the hit, in world units
423
-
self.local_index =# structure-specific index of the element which was hit
424
-
self.structure_data =# a dictionary of additional fields for the clicked structure
416
+
self.is_hit =...# did we hit anything?
417
+
self.structure_type_name =...# structure type which was hit, like "Point Cloud"
418
+
self.structure_name =...# name of structure which was hit, like "my_points"
419
+
self.quantity_name =...# name of quantity which was hit (most quantities cannot be picked, you pick the structure instead)
420
+
self.screen_coords =...# coordinates of the query location
421
+
self.buffer_inds =...# render buffer indices of the query location
422
+
self.position =...# 3d position which was hit, in world space
423
+
self.depth =...# depth to the hit, in world units
424
+
self.local_index =...# structure-specific index of the element which was hit
425
+
self.structure_data =...# a dictionary of additional fields for the clicked structure
425
426
```
426
427
427
428
Additionally, many structures will report additional information about the pick, in the `structure_data` field. For instance, a `SurfaceMesh` gives info on whether a vertex/face/edge/etc was clicked on, the index of that element, and barycentric coordinates of the click within a face.
0 commit comments