Is the possible to hide section of single point cloud based on color?

Hello Team, I have point cloud with 8 different sections like mentioned in the below image.

If I click particular section then that section should get hide/invisible.
so like if I click on green part then green will get invisible and so on.

Is there any way to achieve this behavior ?

Waiting for answers !!
Thank you !!