fstl-app / fstl

A fast STL file viewer
449 stars 105 forks source link

No way to disable obnoxious file warning after opening every file #57

Closed fake-name closed 3 years ago

fake-name commented 3 years ago

Every time I open a STL file generated by solidworks, fstl pops up a pointless warning dialog:


Warning:
This .stl file begins with solid but appears to be a binary file.
fstl loaded it, but other programs may be confused by this file.


I've used solidworks to generate hundreds of STLs for use with probably dozens of other pieces of software, and never had issues (aside from the usual mm/inch confusion). Furthermore, this dialog is modal and cannot be prevented from popping up.

From the original STL specification, the first 80 bytes are specified as "Header. No special significance". If there's software out there that's making assumptions about the contents of the file based on the first 80 bytes, and not using further heuristics to validate that assumption, that other piece of software is broken. It shouldn't be something fstl bothers me about.

DeveloperPaul123 commented 3 years ago

I think the original intention was to differentiate between ASCII and binary *.stl files.

mkeeter commented 3 years ago

Fixed! (details in #58)

fake-name commented 3 years ago

I think the original intention was to differentiate between ASCII and binary *.stl files.

Yeah, but looking for solid in the header doesn't do that.