Skip to content

Commit 5b08229

Browse files
committed
update tutorial for local rendering
1 parent a77a58f commit 5b08229

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

04_application/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
# Trame setup
6363
# -----------------------------------------------------------------------------
6464

65-
server = get_server(client_type = "vue2")
65+
server = get_server(client_type="vue2")
6666
state, ctrl = server.state, server.controller
6767

6868
# -----------------------------------------------------------------------------

04_application/solution.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from trame.ui.vuetify import SinglePageWithDrawerLayout
55
from trame.widgets import vtk, vuetify, trame
66

7+
from trame_vtk.modules.vtk.serializers import configure_serializer
8+
79
from vtkmodules.vtkCommonDataModel import vtkDataObject
810
from vtkmodules.vtkFiltersCore import vtkContourFilter
911
from vtkmodules.vtkIOXML import vtkXMLUnstructuredGridReader
@@ -26,6 +28,9 @@
2628

2729
CURRENT_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
2830

31+
# Configure scene encoder
32+
configure_serializer(encode_lut=True, skip_light=True)
33+
2934
# -----------------------------------------------------------------------------
3035
# Constants
3136
# -----------------------------------------------------------------------------
@@ -169,7 +174,7 @@ class LookupTable:
169174
# Trame setup
170175
# -----------------------------------------------------------------------------
171176

172-
server = get_server(client_type = "vue2")
177+
server = get_server(client_type="vue2")
173178
state, ctrl = server.state, server.controller
174179

175180
state.setdefault("active_ui", None)

0 commit comments

Comments
 (0)