# picker for glypy

**URL:** https://discourse.vtk.org/t/picker-for-glypy/14414
**Category:** Web
**Created:** [August 14, 2024, 7:25am UTC](https://discourse.vtk.org/t/picker-for-glypy/14414 "2024-08-14T07:25:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![liuzhongshu](https://discourse.vtk.org/user_avatar/discourse.vtk.org/liuzhongshu/32/6921_2.png) [@liuzhongshu](https://discourse.vtk.org/u/liuzhongshu)
#### Post date: [August 14, 2024, 7:25am UTC](https://discourse.vtk.org/t/picker-for-glypy/14414/1 "2024-08-14T07:25:59Z")

</div>

Seems vtkCellPicker can not pick for a glypy actor. Neither does vtkPointPicker. but for other actors, they both work.

```auto
mainInteractor.onLeftButtonPress((callData) => {
    const pos = callData.position;
    pointPicker.pick([pos.x, pos.y, 0], mainRenderer);
    /// pointPicker.getActors[] always empty 
});

```

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [August 14, 2024, 7:27am UTC](https://discourse.vtk.org/t/picker-for-glypy/14414/2 "2024-08-14T07:27:20Z")

</div>

I think hardware picking works on glyph though…

---

<div class="post-metadata">

### Author: ![Thibault\_Bruyere](https://discourse.vtk.org/user_avatar/discourse.vtk.org/thibault_bruyere/32/6585_2.png) [@Thibault\_Bruyere](https://discourse.vtk.org/u/Thibault_Bruyere)
#### Post date: [August 14, 2024, 8:00am UTC](https://discourse.vtk.org/t/picker-for-glypy/14414/3 "2024-08-14T08:00:01Z")

</div>

Exactly, the example shows that it can pick glyphs  
All the spheres are glyphs from a cylinder in this example

> **[vtk.js](https://kitware.github.io/vtk-js/examples/HardwareSelector.html)**
>
> HardwareSelectorLive example Source/\* eslint-disable import/prefer-default-export \*//\* eslint-disable import/no-extraneous-dependencies \*/import '@kitware/vtk.js/favicon';// Load the render
