wolph / numpy-stl

Simple library to make working with STL files (and 3D objects in general) fast and easy.
http://numpy-stl.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
605 stars 103 forks source link

Valid stl file (case sensitivity) #155

Closed nilswagner closed 3 years ago

nilswagner commented 3 years ago

Is the file HalfDonut.stl a valid stl file? solid HalfDonut.stl ... ENDSOLID HalfDonut.stl

An ASCII STL file begins with the line

solid

The file concludes with endsolid

What about case sensitivity of endsolid?

https://en.wikipedia.org/wiki/STL_(file_format)

wolph commented 3 years ago

As far as I am aware the standard doesn't specify anything about needing either upper or lowercase. I've changed the file as a test for a case sensitivity fix recently: https://github.com/WoLpH/numpy-stl/issues/154

I do believe it's valid but I'm not certain. Up to a week ago this library only supported the lowercase version but it doesn't matter much either way I think.

wolph commented 3 years ago

The new release supporting case varying STL files is now online :)