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
Copy file name to clipboardExpand all lines: docs/README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ In `dash_vtk` we have several objects that falls into that category. The list be
109
109
110
110
Now that we have those core concepts down we can show you some code on how to render a mesh using `dash-vtk`.
111
111
112
-
[code](./tutorials/00_geometry_rendering.py)
112
+
[code](./tutorials/t00_geometry_rendering.py)
113
113
```py
114
114
# Use helper to get a mesh structure that can be passed as-is to a Mesh
115
115
mesh_state = to_mesh_state(dataset)
@@ -138,7 +138,7 @@ if __name__ == "__main__":
138
138
139
139
The previous example was using a 3D image and extracting its mesh to render. Let's keep the same data but show it as Volume Rendering.
140
140
141
-
[code](./tutorials/01_volume_rendering.py)
141
+
[code](./tutorials/t01_volume_rendering.py)
142
142
```py
143
143
import dash
144
144
import dash_html_components as html
@@ -198,7 +198,7 @@ The set of properties that can be given to `ImageData` are as follow:
198
198
199
199
A concreate example would be a grid of 5 points or 4 cells along each axis which will go from `[-2, 2]` along each axis.
200
200
201
-
[code](./tutorials/02_imagedata.py)
201
+
[code](./tutorials/t02_imagedata.py)
202
202
```py
203
203
dash_vtk.ImageData(
204
204
dimension=[5,5,5],
@@ -234,7 +234,7 @@ lines = [
234
234
235
235
You can see a concreate example in the image below
236
236
237
-
[code](./tutorials/03_polydata.py)
237
+
[code](./tutorials/t03_polydata.py)
238
238

239
239
240
240
The `dash_vtk.PolyData` element has an additional property to automatically generate cells based on some assumption of the order of the points defined in the `points` array. That property is named __connectivity__ which default to `manual` meaning no automatic action is taken. But that property can be set to `points` to automatically set the vertex to actually see the points provided or `triangles` which assume to use 3 concecutive points to create a triangle and finally `strips` which then assume it is a single triangle strip consuming all the points.
@@ -253,7 +253,7 @@ The example below show you how you can attach fields to a dataset (PolyData and/
253
253
254
254
Caution: By convention, we always attach data to points in an ImageData for doing VolumeRendering and the array must be registered as scalars.
0 commit comments