Kitware / trame

Trame lets you weave various components and technologies into a Web Application solely written in Python.
https://kitware.github.io/trame/
Other
443 stars 57 forks source link

How to delete the actor in the VtkLocalView? #137

Closed 13917904019 closed 2 years ago

13917904019 commented 2 years ago

image

After excuting the click_test2() function, I can still see the actor in the browser. Refreshing the web page could erase the actor and browser Cache might be the reason. How to solve the problem?

Thanks

13917904019 commented 2 years ago

image

In addition, after changing the mapper, the sense in the browser is ok but the camera is not in the right position. Refreshing the whole web page can also make it right.

jourdain commented 2 years ago

Also tracked here https://github.com/Kitware/trame-vtk/issues/3

For the camera part, it tends to be offloaded to the client but we should provide helper methods to streamline camera synchronization for either pushing client_to_server or server_to_client.

jourdain commented 2 years ago

Should be fixed with trame-vtk>=2.0.9