apparentlymart / python-stl

Python library for parsing and producing STL files, in both ASCII and binary formats. No longer maintained.
MIT License
9 stars 13 forks source link

ASCII importer does not support space separated solid names #11

Open zlotny opened 7 years ago

zlotny commented 7 years ago

When importing an ascii STL made on Blender, the solid name is something like this:

_solid Exported from Blender-2.78 (sub 0)
...
endsolid Exported from Blender-2.78 (sub 0)_

The lib in this case finds a keyword 'from' that does not like, resulting in this exception:

<class 'stl.ascii.SyntaxError'>: Unexpected keyword 'from' at line 1, column 16

hbayindir commented 7 years ago

I'm not sure that the names with spaces are supposed to be supported. The standard is ambiguous at that.

lucky5210 commented 6 years ago

有的stl文件转换为ascii格式时 报错 main.FormatError: Unexpected end of file at offset 8612384

lucky5210 commented 6 years ago

@apparentlymart 有的stl文件转换为ascii格式时报错 main.FormatError: Unexpected end of file at offset 8612384