You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the viewer provides a convinient solution for sharing visualizations, it is also important to provide a simple approach for capturing such a scene into a standalone file.
4
4
5
+
The `trame.widget.vtklocal.VtkLocal` widget provides a `save(file_name)` helper method that will ease such file creation. You can even see its usage within our trame examples. Once things stabilize, we may promote such method on the vtkObjectManager directly to ease access.
Copy file name to clipboardExpand all lines: docs/guide/viewer/index.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,16 @@
1
1
# VTK.wasm viewer
2
2
3
-
Thanks to VTK.wasm we are getting close to full parity with what is available in VTK C++ and therefore can create viewers that display scenes equivalent to what you can produce with ParaView or any VTK based application.
3
+
Thanks to VTK.wasm we are getting close to full parity with what is available in VTK C++ and therefore we can create viewers that display scenes equivalent to what you can produce with ParaView or VTK.
The code snippet available below show you how you can embed a static 3D scene inside a web page.
6
+
7
+
<<< ../../public/demo/viewer-basic.html
8
+
9
+
The `createViewer` method give you the opportunity to fill a DOM element using a selector and the path of the data to load. Additionally, you can provide the path to the WASM library to load unless it is imported as a script. Finally, you can configure your running by setting the rendering backend and execution mode.
0 commit comments