Skip to content

Commit 52b7ea7

Browse files
committed
MLAB-6214
1 parent 612d143 commit 52b7ea7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

mevislab.github.io/content/tutorials/dataobjects/surfaces/surfaceexample3.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,32 @@ menu:
1818
{{< youtube "YDOEqCOmUFw">}}
1919

2020
## 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
2323
* Modify a WEM in a scene
2424

2525
### 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.
2727

2828
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*.
2929

3030
![Initial Network](images/tutorials/dataobjects/surfaces/WEMExample3_1.png "Initial Network")
3131

32-
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.
3333

3434
![Initial Cube](images/tutorials/dataobjects/surfaces/WEMExample3_2.png "Initial Cube")
3535

36-
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.
3739

3840
![SoTransformerDragger and SoTransform](images/tutorials/dataobjects/surfaces/WEMExample3_3.png "SoTransformerDragger and SoTransform")
3941

4042
Draw parameter connections from *Translation*, *Scale Factor*, and *Rotation* of the `SoTransformerDragger` to the same fields of the `SoTransform` module.
4143

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.
4347

4448
{{<alert class="info" caption="Info">}}
4549
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
5256
{{< networkfile "examples/data_objects/surface_objects/example3/SurfaceExample3.mlab" >}}
5357

5458
### Interactively Modify WEMs
59+
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+
5561
We are using the `WEMBulgeEditor` module to interactively modify the WEM via mouse interactions.
5662

5763
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

Comments
 (0)