I have a stl file which seems to open in 3D slicer but does not appear to display in any of the views and I’m not sure why.
It opens and displays in an online viewer: https://www.viewstl.com/
In the log file, there are these errors, which looks like incorrectly created STL. I am not sure why other viewers (like Paint3D in windows showing this).
STLReader: error while reading file C:/Users/murat/Downloads/HEAD.stl at line 341195: Premature EOF while reading ‘facet’
Algorithm vtkSTLReader(0000028822EF0A20) returned failure for request: vtkInformation (00000288233853B0)
Debug: Off
Modified Time: 231260
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
ReadDataInternal (vtkMRMLModelStorageNode1): File C:/Users/murat/Downloads/HEAD.stl does not contain coordinate system information. Assuming LPS.
Thanks for your help.
Based on both the replys I was able to determine the final line in the file was not correctly formatted
Strangely I had previously been using blender with these files for some tasks and so that’s why I hadn’t encountered the issue with the files previously.
Other readers implicitly assume the STL file ends with this command.
I remain steadfast in my conviction that STL should be considered harmful. This same structure could be saved as binary PLY saving an order of magnitude in file size, even more benefit in read speed, and with none of the faceting or vertex unification required by the STL format. I contend the STL format should only be used as the format of last resort, and tools that do not support better formats should be improved. As STL does not reuse vertices, it is inherently a poor choice for applications such as this model.