# Interaction problem

**URL:** https://discourse.vtk.org/t/interaction-problem/3766
**Category:** Support
**Created:** [July 14, 2020, 8:38am UTC](https://discourse.vtk.org/t/interaction-problem/3766 "2020-07-14T08:38:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Cheng1087](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cheng1087/32/1197_2.png) [@Cheng1087](https://discourse.vtk.org/u/Cheng1087)
#### Post date: [July 14, 2020, 8:38am UTC](https://discourse.vtk.org/t/interaction-problem/3766/1 "2020-07-14T08:38:58Z")

</div>

Two vtkSpheres are displayed in an actor, now I pick up a cell in vtkSphere, and then I need to highlight the selected vtkSphere.  
solutions:

1. Change the polyData of the selected vtkSphere and assign different colors
2. Build another actor and display wireframe of the clicked vtkSphere  
Which solution is better? Or there are any better way?

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [July 16, 2020, 1:55pm UTC](https://discourse.vtk.org/t/interaction-problem/3766/2 "2020-07-16T13:55:49Z")

</div>

Hi, Cheng,

Pick the one you feel good with, both seem good to me. In programming there is no such thing as “better way”, instead there are solutions well suited to your problem. For example, if you ask the community which is the best way to sort a list, other people will suggest fancy things you may not really need like heap sort when the humble, trusty, cheap-to-implement bubble sort will solve your little “sort 5-6 items in the combobox” like charm.

Trust your own solution will be good. It stimulates your creativity and develops confidence in yourself. If it doesn’t work as expected, don’t abandon it yet, then you seek more experienced users for fixes.

Well, answering your question, I’d favor your 1st idea as it doesn’t involve creating new objects. Just my two cents.

cheers,

Paulo

---

<div class="post-metadata">

### Author: ![Cheng1087](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cheng1087/32/1197_2.png) [@Cheng1087](https://discourse.vtk.org/u/Cheng1087)
#### Post date: [July 17, 2020, 6:06am UTC](https://discourse.vtk.org/t/interaction-problem/3766/3 "2020-07-17T06:06:28Z")

</div>

Thanks for your reply. It helps me a lot~
