Kitware / vtk-js

Visualization Toolkit for the Web
https://kitware.github.io/vtk-js/
BSD 3-Clause "New" or "Revised" License
1.23k stars 371 forks source link

Is there any function like Three.group() in vtkJs? #1318

Closed buptwny closed 4 years ago

buptwny commented 4 years ago

I want to define a group to restore something in order to control the assemble show, In threejs, I can use THREE().group(), so how to do that in vtkjs? Thanks a lot!

jourdain commented 4 years ago

We don't have a class that does that per-say, but depending what you are looking for, you can either implement it simply (extend vtkProp with only an addActor method) or you can create functions that could help you out.

buptwny commented 4 years ago

We don't have a class that does that per-say, but depending what you are looking for, you can either implement it simply (extend vtkProp with only an addActor method) or you can create functions that could help you out.

Thank you ! Now I just push the actors to an array, also works.