How to convert to .stl from .nii

Hi everyone,

I want to convert this .nii file directly into .stl file which can be used by Netgen, how can I do it without any segmentation in 3DSlicer? Because this file .nii was already a segmentation from itksnap.

The link of this file .nii:

Thank you.


Yes, this file can easily be converted to stl. In the Add Data dialog, show the options and select the LabelMap. Then in the Segmentations module, create a segmentation and then use the Import option at the bottom to import the labelmap as a segmentation. Then click the Create button next to Close Surface representation. Then you can use the Export section to save as STL…


Note that you can save a few steps (and have a few useful additional options) if you use “Export to files” section (instead of clicking on Create button, exporting to model, and using scene Save).

The example file contains an invalid coordinate system (determinant of voxel->physical transform is negative, i.e., left-handed coordinate system), therefore the generated STL file will be turned inside out. If that is a problem for you, either fix orientation of the input volume or reverse the model using Surface toolbox module’s auto-orient normals feature.

3 posts were split to a new topic: How to handle images defined in left-handed coordinate system