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: mevislab.github.io/content/tutorials/dataobjects/surfaces/surfaceexample3.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,28 +18,32 @@ menu:
18
18
{{< youtube "YDOEqCOmUFw">}}
19
19
20
20
## Introduction
21
-
In these examples, we are showing two different possibilities to interact with a WEM:
22
-
* Scale, rotate, and move a WEM in a scene
21
+
In these examples, we are showing two different possibilities to interact with the visualization of the WEM:
22
+
* Scale, rotate, and move a WEM's visualization in a scene
23
23
* Modify a WEM in a scene
24
24
25
25
### Scale, Rotate, and Move a WEM in a Scene
26
-
We are using a `SoTransformerDragger` module to apply transformations on a 3D WEM object via mouse interactions.
26
+
We are using a `SoTransformerDragger` module to apply transformations on the visualizations of a 3D WEM object via mouse interactions.
27
27
28
28
Add a `SoCube` and a `SoBackground` module and connect both to a `SoExaminerViewer`. For a better understanding, you should also add a `SoCoordinateSystem` module and connect it to the viewer. Change the *User Transform Mode* to *User Transform Instead Of Input* and set *User Scale* to 2 for *x*, *y*, and *z*.
The `SoExaminerViewer` shows your cube and the world coordinate system. You can interact with the camera (rotate, zoom, and pan), the cube itself does not change and remains in the center of the coordinate system.
32
+
The `SoExaminerViewer` shows your cube and the world coordinate system. You can interact with the camera (rotate, zoom, and pan), the visualization of the cube itself does not change. It remains in the center of the coordinate system.
Scaling, rotating, and translating the cube itself can be done by using the module `SoTransformerDragger`. Additionally, add a `SoTransform` module to your network. Add all modules except the `SoCoordinateSystem` to a `SoSeparator`, so that transformations are not applied to the coordinate system.
36
+
Scaling, rotating, and translating the visualization of the cube can be done by using the module `SoTransformerDragger`.
37
+
38
+
Additionally, add a `SoTransform` module to your network. Add all modules except the `SoCoordinateSystem` to a `SoSeparator`, so that transformations are not applied to the coordinate system.
37
39
38
40

39
41
40
42
Draw parameter connections from *Translation*, *Scale Factor*, and *Rotation* of the `SoTransformerDragger` to the same fields of the `SoTransform` module.
41
43
42
-
Opening your SoExaminerViewer now allows you to use handles of the `SoTransformerDragger` to scale, rotate, and move the cube. You can additionally interact with the camera as already done before.
44
+
Opening your SoExaminerViewer now allows you to use handles of the `SoTransformerDragger` to scale, rotate, and move the visualization of the cube. The cube itself remains unchanged in memory, a matrix for translation is applied to the original 3D object's visualization.
45
+
46
+
You can additionally interact with the camera as already done before.
43
47
44
48
{{<alertclass="info"caption="Info">}}
45
49
You need to change the active tool on the right side of the `SoExaminerViewer`. Use the *Pick Mode* for applying transformations and the *View Mode* for adjusting the camera.
@@ -52,6 +56,8 @@ You can also try the other `So*Dragger` modules in MeVisLab for variations of th
The big difference to the previously described scenario, where we modified the visualization of the WEM, is that this example modifies the WEM itself.
60
+
55
61
We are using the `WEMBulgeEditor` module to interactively modify the WEM via mouse interactions.
56
62
57
63
Add the modules `WEMInitialize`, `SoWEMRenderer`, and `SoBackground` to your workspace and connect them to a `SoExaminerViewer` as seen below. Select model *Icosahedron* for the `WEMInitialize` module.
0 commit comments