Open adam-urbanczyk opened 2 months ago
Regarding 3, it is easy to get something quickly:
Few observations:
vtkAssembly
does not seem to work with vtkLocalView
(VTK.js)Output from spyder call 'get_state':
vtk-remote-view.size is missingvtk-remote-view.size is missingvtk-remote-view.shape is missingvtk-remote-view.shape is missingvtk-remote-view.shape is missingvtk-remote-view.shape is missingvtk-remote-view.size is missingvtk-remote-view.size is missingvtk-remote-view.size is missingvtk-remote-view.size is missingvtk-remote-view.shape is missingvtk-remote-view.shape is missingvtk-remote-view.shape is missingvtk-remote-view.shape is missingvtk-remote-view.size is missingvtk-remote-view.size is missing
I had some interest in a VTK.js based viewer (maybe as a separate project not built-in to CadQuery). I suppose the viewer could be implemented in other frameworks so Trame is one option.
FYI: with the current implementation VTK.js based rendering seems to be rather quirky, less so with remote rendering. With VTK 9.4 where is also a WASM option if I understand correctly, but for now we are on 9.3.
Currently
show
is blocking, it would be great to be able to use it multiple times without blocking of the script execution. I see 3 optionsQt
orTk
, requires integration of the gui event loop with the interpreter (Check how IPython odes that)vtkRenderWindowInteractor.ProcessEvents()