Strange behaviour when removing actors

Hi Everyone,
First can I say that I’m new to React and VTK so apologies for my lack of knowledge.

I’ve created some simple code that adds actors and removes all actors. When removing all actors the render does not remove them, but by making a call to getActors() on the renderer, it then updates.

Code: https://pastebin.com/a2NSGtK0
Sam

Hi, you can use renderer.current.removeAllViewProps() to remove all scene objects. I will check to see if removeAllActors() has a bug.

1 Like