# STL file model not displaying

**URL:** <https://discourse.slicer.org/t/stl-file-model-not-displaying/12647>\
**Category:** Support\
**Created:** [July 20, 2020, 4:45pm UTC](https://discourse.slicer.org/t/stl-file-model-not-displaying/12647 "2020-07-20T16:45:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/matt_b/32/6614_2.png) [@Matt\_B](https://discourse.slicer.org/u/Matt_B)\
**Post date:** [July 20, 2020, 4:45pm UTC](https://discourse.slicer.org/t/stl-file-model-not-displaying/12647/1 "2020-07-20T16:45:35Z")

</div>

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/](https://www.viewstl.com/)

The file is available here: [https://1drv.ms/u/s!AqHhiLxi-jzyg\_FTceE7gVj6hlY0fA?e=h0PlFe](https://1drv.ms/u/s!AqHhiLxi-jzyg_FTceE7gVj6hlY0fA?e=h0PlFe)

Any ideas what is wrong with the files? They are created with a script so must be something not quite right in the formatting I think.

---

<div class="post-metadata">

**Author:** ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)\
**Post date:** [July 20, 2020, 5:01pm UTC](https://discourse.slicer.org/t/stl-file-model-not-displaying/12647/2 "2020-07-20T17:01:54Z")

</div>

Very interesting… I don’t know how to help but re exporting from blender works well.

 ![Screenshot from 2020-07-20 19-00-16](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/5/6590b19a4d059929456fdaff6f7fc2abbdc2551d.png)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/83011_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [July 20, 2020, 5:07pm UTC](https://discourse.slicer.org/t/stl-file-model-not-displaying/12647/3 "2020-07-20T17:07:56Z")

</div>

> [@Matt\_B](#):
>
> Any ideas what is wrong with the files? They are created with a script so must be something not quite right in the formatting I think.

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.
> 
> No input data

---

<div class="post-metadata">

**Author:** ![Matt\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/matt_b/32/6614_2.png) [@Matt\_B](https://discourse.slicer.org/u/Matt_B)\
**Post date:** [July 20, 2020, 6:27pm UTC](https://discourse.slicer.org/t/stl-file-model-not-displaying/12647/4 "2020-07-20T18:27:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Chris\_Rorden](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chris_rorden/32/4073_2.png) [@Chris\_Rorden](https://discourse.slicer.org/u/Chris_Rorden)\
**Post date:** [July 21, 2020, 11:54am UTC](https://discourse.slicer.org/t/stl-file-model-not-displaying/12647/5 "2020-07-21T11:54:50Z")

</div>

The final line is missing

```auto
endsolid

```

Other readers implicitly assume the STL file ends with this command.

I remain steadfast in my conviction that [STL should be considered harmful](https://discourse.slicer.org/t/beware-of-the-stl-file-format/7642). 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.
