Hi, when I import the same file on Slicer and MeshLab the STL volumes are either inverted or rotated differently. Firstly, I do not understand why this only occurs for few STL files I have and what I could do to fix it, as the orientation/coordinates of these volumes matter to me. Thanks
Did you generate these STLs in an earlier version of Slicer?
If so, Slicer recently changed to using LPS coordinate system for 3D Models: Model files are now saved in LPS coordinate system.
If you expand the Load Data dialog box options, and change the Coordinate system from default to RAS, perhaps that will fix it.
Slicer stores the coordinate system in the header of all mesh files (STL, OBJ, PLY, VTK, VTP, VTU) in a comment such as
SPACE=RAS. If there is no such comment in the file header then the coordinate system is assumed to be LPS, because this is the most commonly used coordinate system convention in medical image computing.
The world coordinate system in Slicer is RAS (this decision had to be made 20 years ago, when it was not clear if LPS or RAS was going to win). Therefore, when loading a file, Slicer automatically inverts the first two coordinate axes if the file uses LPS coordinate system.