Hello to everyone,
I downloaded an atlas from the 3d slicer library and I selected the anatomical parts that interest me.
Now I need to save the model as an stl file. In this model every anatomical part has to be a different stl file (entity).
I need this to export the model in Solidworks and see the whole model with the different anatomical parts I selected as different parts.
By now, I only managed to save the whole model as a single component and save every single anatomical part of interest as a model, but this is not what I need.
It’s not completely clear to me what you need, but it sounds like you want to combine multiple distinctly labeled parts of the atlas into a single stl file? You can do this in the legacy Editor module with the Change Label effect, by changing all the label numbers of the structures of interest into the number you want them to be and then use the Model Maker to regenerate a model that you can save as stl.
If that’s not what you are looking for maybe you could include some screenshot images to explain.
If you use Segment Editor module and a recent nightly version of Slicer then you can export all segments as a combined STL file directly - see Save segmentation directly to STL or OBJ files
In this way I think that the model is saved as a unique block. I need one model, but composed of different objects that are recognized by Solidworks as different “parts” of the assembly.
If you have your segmentation in a model or labelmap node then you can convert it to a segmentation node using Segmentations module. However, from the rest of your message it seems that you actually don’t need to merge the data before exporting it, because if you do, then there is no way SolidWorks can separate them ever again.
What operating system and graphics card do you have?
For this, you need to export each model as a separate STL file and create your assembly in SolidWorks. Note that you might not be able to do much with imported surface meshes in SolidWorks, as by default they will not be considered solids. What is your end goal?
This is exactly what happened when I had merged the models of the anatomical parts I am interested.
I also tried this way, but it’s impossible to position every single part in the place it belongs accurately in Solidworks.
This is why I would like to know if it is possible to export a model which keeps the information about its single parts, view them as separate.
Slicer correctly exports all the models in the same coordinate system. If SolidWorks by default ignores this information then it has be resolved in SolidWorks. There might be import options or you may be able to specify that vertices of all the different parts are defined in a single coordinate system, etc. You may get answers on SolidWorks forums.
Have you tried if SolidWorks can do what you need after you imported parts? Can you convert the meshes to solid parts? What is the end goal? Modeling, 3D printing, or simulation? Depending on what is the end goal, you may need to generate volumetric meshes, which you export completely differently. If the goal is 3D printing, then you may do some more modeling in Slicer and finish up with more suitable modelers than SolidWorks, such as Autodesk Fusion 360, MeshMixer, Blender, etc.
You may find it useful that in recent nightly versions of Slicer, you can export segmentation directly to a single OBJ file, with correct colors: Save segmentation directly to STL or OBJ files