-. If you like to know which WEM formats can be imported into MeVisLab, take a look at the <em>assimp</em> documentation <a href=https://github.com/assimp/assimp target=_blank rel=noopener>here</a>.</p><h4><a href=https://mevislab.github.io/examples/pull/133/tutorials/dataobjects/surfaces/surfaceexample1/>Surface Example 1: Creation of WEMs</a></h4><h1 id=surface-example-1-create-winged-edge-mesh-out-of-voxel-images-and-csos>Surface Example 1: Create Winged Edge Mesh out of Voxel Images and CSOs</h1><div class="alert alert-secondary d-flex align-items-center" role=alert><div><img width=100px src=images/youtube.svg> <a href="https://www.youtube.com/watch?v=-KnZ5a27T0c" target=_blank><img width=100px src=https://img.youtube.com/vi/-KnZ5a27T0c/0.jpg></a> This example is also available on <a href="https://www.youtube.com/watch?v=-KnZ5a27T0c" target=_blank>YouTube</a>.</div></div><h2 id=introduction>Introduction</h2><p>In this example you will learn how to create a Winged Edge Mesh (WEM). There are several approaches on creating WEMs, a few of them are shown in this example. Instead of creating WEMs, they can also be imported, see chapter <a href=tutorials/dataobjects/surfaceobjects>Surface Objects (WEM)</a>.</p><h2 id=steps-to-do>Steps to Do</h2><h3 id=from-image-to-surface-generating-wems-out-of-voxel-images>From Image to Surface: Generating WEMs out of Voxel Images</h3><p>At first, we will create a WEM out of a voxel image using the module <code>WEMIsoSurface</code>. Add and connect the shown modules. Load the image <em>$(DemoDataPath)/Bone.tiff</em> and set the <em>Iso Min. Value</em> in the panel of <code>WEMIsoSurface</code> to 1200. Tick the box <em>Use image max. value</em>. The module <code>WEMIsoSurface</code> creates surface objects out of all voxels with an isovalue equal or above 1200 (and smaller than the image max value). The module <code>SoWEMRenderer</code> can now be used to generate an Open Inventor scene, which can be displayed by the module <code>SoExaminerViewer</code>.</p><h4><a href=https://mevislab.github.io/examples/pull/133/tutorials/dataobjects/surfaces/surfaceexample2/>Surface Example 2: Processing and Modification of WEM</a></h4><h1 id=surface-example-2-processing-and-modifying-of-wem>Surface Example 2: Processing and Modifying of WEM</h1><div class="alert alert-secondary d-flex align-items-center" role=alert><div><img width=100px src=images/youtube.svg> <a href="https://www.youtube.com/watch?v=lVbldzanvfE" target=_blank><img width=100px src=https://img.youtube.com/vi/lVbldzanvfE/0.jpg></a> This example is also available on <a href="https://www.youtube.com/watch?v=lVbldzanvfE" target=_blank>YouTube</a>.</div></div><h2 id=introduction>Introduction</h2><p>In this example, you will learn how to modify and process WEMs.</p><h2 id=steps-to-do>Steps to Do</h2><h3 id=develop-your-network>Develop Your Network</h3><h4 id=modification-of-wems>Modification of WEMs</h4><p>Use the module <code>WEMLoad</code> to load the file <em>venus.off</em>. Then, add and connect the shown modules. We like to display the WEM <em>venus</em> two times, one time this WEM is modified. You can use the module <code>WEMModify</code> to apply modifications. In its panel, change the scale and the size of the WEM. Now, you see two times the <code>venus</code> next to each other.</p><h4><a href=https://mevislab.github.io/examples/pull/133/tutorials/dataobjects/surfaces/surfaceexample3/>Surface Example 3: Interactions With WEM</a></h4><h1 id=surface-example-3-interactions-with-wem>Surface Example 3: Interactions with WEM</h1><div class="alert alert-secondary d-flex align-items-center" role=alert><div><img width=100px src=images/youtube.svg> <a href="https://www.youtube.com/watch?v=YDOEqCOmUFw" target=_blank><img width=100px src=https://img.youtube.com/vi/YDOEqCOmUFw/0.jpg></a> This example is also available on <a href="https://www.youtube.com/watch?v=YDOEqCOmUFw" target=_blank>YouTube</a>.</div></div><h2 id=introduction>Introduction</h2><p>In these examples, we are showing two different possibilities to interact with the visualization of the WEM:</p><ul><li>Scale, rotate, and move a WEM’s visualization in a scene</li><li>Modify a WEM in a scene</li></ul><h3 id=scale-rotate-and-move-a-wem-in-a-scene>Scale, Rotate, and Move a WEM in a Scene</h3><p>We are using a <code>SoTransformerDragger</code> module to apply transformations on the visualizations of a 3D WEM object via mouse interactions.</p><h4><a href=https://mevislab.github.io/examples/pull/133/tutorials/dataobjects/surfaces/surfaceexample4/>Surface Example 4: Interactively Moving WEM</a></h4><h1 id=surface-example-4-interactively-moving-wem>Surface Example 4: Interactively Moving WEM</h1><div class="alert alert-secondary d-flex align-items-center" role=alert><div><img width=100px src=images/youtube.svg> <a href="https://www.youtube.com/watch?v=WKiCddNGKrw" target=_blank><img width=100px src=https://img.youtube.com/vi/WKiCddNGKrw/0.jpg></a> This example is also available on <a href="https://www.youtube.com/watch?v=WKiCddNGKrw" target=_blank>YouTube</a>.</div></div><h2 id=introduction>Introduction</h2><p>In this example, we like to interactively move WEMs using <code>SoDragger</code> modules inside a viewer.</p><h3 id=develop-your-network>Develop Your Network</h3><h3 id=interactively-translating-objects-in-3d-using-sodragger-modules>Interactively Translating Objects in 3D Using SoDragger Modules</h3><p>Add and connect the following modules as shown. On the panel of the module <code>WEMInitialize</code>, select the <em>Model</em> <em>Octasphere</em>. After that, open the viewer <code>SoExaminerViewer</code> and make sure to select the <em>Interaction Mode</em>. Now, you are able to click on the presented <em>Octasphere</em> and move it alongside one axis. The following modules are involved in the interactions:</p><h4><a href=https://mevislab.github.io/examples/pull/133/tutorials/testing/>Chapter VI: Testing</a></h4><h1 id=TutorialChapter6>MeVisLab Tutorial Chapter VI</h1><h2 id=TutorialTesting>Testing, Profiling, and Debugging in MeVisLab</h2><p>The MeVisLab Integrated Development Environment (IDE) provides tools to write automated tests in Python, to profile your network performance, and to debug your Python code.
0 commit comments