This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.
Steps to do
Develop your network
Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.
Example Network
Open the 3D file
Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.
\ No newline at end of file
diff --git a/tags/3d-printing/index.xml b/tags/3d-printing/index.xml
index 6e5606ff0..e76efe5f8 100644
--- a/tags/3d-printing/index.xml
+++ b/tags/3d-printing/index.xml
@@ -1,4 +1,9 @@
3D Printing on MeVisLab Exampleshttps://mevislab.github.io/examples/tags/3d-printing/Recent content in 3D Printing on MeVisLab ExamplesHugoen-usWed, 15 Jun 2022 08:56:33 +0200Example 1: 3D Printing in MeVisLabhttps://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/Wed, 15 Jun 2022 08:56:33 +0200https://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/<h1 id="example-1-3d-printing-in-mevislab">Example 1: 3D Printing in MeVisLab</h1>
+<div class="alert alert-secondary d-flex align-items-center" role="alert">
+ <div>
+ <img width="100px" src="https://mevislab.github.io/examples/images/youtube.svg" /> <a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank"><img width="100px" src="https://img.youtube.com/vi/82ysCYNTyso/0.jpg" /></a> This example is also available on <a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank">YouTube</a>.
+ </div>
+</div>
<h2 id="introduction">Introduction</h2>
<p>This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.</p>
<h2 id="steps-to-do">Steps to do</h2>
diff --git a/tags/3d/index.html b/tags/3d/index.html
index 318f2db47..e704266bd 100644
--- a/tags/3d/index.html
+++ b/tags/3d/index.html
@@ -36,4 +36,4 @@
SoView2DOverlay and View2D to your workspace. Connect the module as
shown. The module VoxelizeCSO allows to convert CSOs into voxel images.
In MeVisLab it is possible to create, visualize, process and manipulate surface objects, also known as polygon meshes. Here, we call surface objects Winged Edge Mesh, in short WEM. In this chapter you will get an introduction into WEMs. In addition, you will find examples on how to work with WEMs. For more information on WEMs take a look at the
MeVislab Toolbox Reference
-. If you like to know which WEM formats can be imported into MeVisLab, take a look at the assimp documentation here.
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 Surface Objects (WEM).
Steps to do
From image to surface: Generating WEMs out of voxel images
At first, we will create a WEM out of a voxel image using the module WEMIsoSurface. Add and connect the shown modules. Load the image $(DemoDataPath)/Bone.tiff and set the Iso Min. Value in the panel of WEMIsoSurface to 1200. Tick the box Use image max. value. The module WEMIsoSurface creates surface objects out of all voxels with an Iso value equal or above 1200 (and smaller than the image max value). The module SoWEMRenderer can now be used to generate an Open Inventor scene, which can be displayed by the module SoExaminerViewer.
In this example, you will learn how to modify and process WEMs.
Steps to do
Develop your network
Modification of WEMs
Use the module WEMLoad to load the file venus.off. Then add and connect the shown modules. We like to display the WEM venus two times, one time this WEM is modified. You can use the module WEMModify to apply modifications. In its panel, change the scale and the size of the WEM. Now you see two times the venus next to each other.
In this example, we like to interactively move WEMs using SoDragger modules insight a viewer.
Develop your network
Interactively translating objects in 3D using SoDragger modules
Add and connect the following modules as shown. In the panel of the module WEMInitialize select the ModelOctasphere. After that, open the viewer SoExaminerViewer and make sure to select the Interaction Mode. Now, you are able to click on the presented Octaspehere and move it alongside one axis. The following modules are involved in the interactions:
WEMs do not only contain the coordinates of nodes and surfaces, they can also contain additional information. These information are stored in so called Primitive Value Lists (PVLs). Every node, every surface and every edge can contains such a list. In these lists, you can for example store the color of the node or specific patient information. These information can be used for visualization or for further statistical analysis.
In this example, we will measure the distance between one position in an image to a list of markers.
Steps to do
Develop your network
Add the following modules and connect them as shown.
We changed the names of the modules SoView2DMarkerEditor and XMarkerLIstContainer, to distinguish these modules from two similar modules we will add later on. Open the panel of SoView2DMarkerEditor and select the tab Drawing. Now chose the Colorred.
Assimp (Asset-Importer-Lib) is a library to load and process geometric scenes from various 3D data formats.
This chapter provides some examples of how 3D formats can be imported into MeVisLab. In general you always need a SoSceneLoader module. The SoSceneLoader allows to load meshes as Open Inventor points/lines/triangles/faces using the Open Asset Import Library.
SoSceneLoader
You can also use the SoSceneWriter module to export your 3D scenes from MeVisLab into any of the output formats listed below.