Hi all,
attached the code that I use to detect if STL is in ASCII or BINARY format.
I wrote for and old version of GLScene but can be converted to latest source code.
The STL can also read colors when embedded in facet extra bytes.
We receive a lot of binary STLs from a very etherogeneous group of CAD Systems.
Seem none respect a common rule to content of Header part.
I will collect all test versions in a zip and I will place here (BobCAD/CAM, Fusion 360, MeshLab, SolidWorks, DesignSpark Mechanincal, Catia, Hypermill, and so on....) a very mess of different header formats.....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
attached the code that I use to detect if STL is in ASCII or BINARY format.
I wrote for and old version of GLScene but can be converted to latest source code.
The STL can also read colors when embedded in facet extra bytes.
Thnx shine world,
I'll include it in the current repo version
Pavel
Hi i remember well this issue about binary/text of STL format was already resolve some time ago. I've made the change from someone in this forum
https://sourceforge.net/p/glscene/discussion/93605/thread/6a14ad56/?limit=25#3eb1
and
https://sourceforge.net/p/glscene/discussion/93606/thread/bc1a551d/
Best regards
Hi Jerome
Unfortunately this rule:
don't cover all my cases.
We receive a lot of binary STLs from a very etherogeneous group of CAD Systems.
Seem none respect a common rule to content of Header part.
I will collect all test versions in a zip and I will place here (BobCAD/CAM, Fusion 360, MeshLab, SolidWorks, DesignSpark Mechanincal, Catia, Hypermill, and so on....) a very mess of different header formats.....
shine world,
I've included your update for GLFileSTL in current version
Pavel
Hi Shine it will be a great help to improve loader if you can place many various format of STL files ;)