Pryme8 Posted May 11, 2017 Share Posted May 11, 2017 I really am struggling with trying to figure out how extend babylon to be able to parse binary STL files. Does anyone have any good sources on how like Three.js or sketchfab does it? I have been googling my heart out and seem to keep hitting dead ends. Maybe a different angle will help me figure things out. Quote Link to comment Share on other sites More sharing options...
gryff Posted May 11, 2017 Share Posted May 11, 2017 1 hour ago, Pryme8 said: Does anyone have any good sources on how like Three.js or sketchfab does it? @Pryme8 ; Well P8, I don't claim to have any skills with this type of thing, but a program called MeshLab can parse .stl files. It is open source and the source files are available - so maybe you can find something at that link. cheers, gryff Pryme8 1 Quote Link to comment Share on other sites More sharing options...
yorke Posted May 11, 2017 Share Posted May 11, 2017 Hi, I never used STL format but three.js has an ASCII .stl importer, you can try reverse engineering that: https://threejs.org/examples/js/loaders/STLLoader.js There are also converters for binary <--> ascii STL formats, you can search on the internet. By example I found this: https://github.com/cmpolis/convertSTL/blob/master/convertSTL.rb Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.