Comments (3)
Hah, interesting case! Your analysis is correct that the test for a binary file fails in this case. The reason is that the provided STL file begins with the ASCII characters solid Part
. According to Wikipedia this is generally a no-go for binary STL files:
A binary STL file has an 80-character header which is generally ignored, but should never begin with the ASCII representation of the string solid, as that may lead some software to confuse it with an ASCII STL file.
Nevertheless, would be good if our STL reader would be more robust for such cases.
Out of curiosity: Which software created the STL file?
from pmp-library.
ahhh, thanks for the answer ... helps me to also pay attention about that with other geometries.
The file was provided to me and I never asked how was created but from the workflow of my current job it is usually do in 2 ways to get a mesh (the initial input is a CAD file)
- Use out-of-the-box CAD software like solidworks or rhino and let that software do the import to STL
- In C++ we plugin this gigantic library https://dev.opencascade.org/doc/overview/html/ to our pipeline which can convert CAD/Nurbs into STL/Faces
from pmp-library.
I see, thanks.
I'll keep the issue open as a reminder to make our binary detection more robust.
from pmp-library.
Related Issues (20)
- STL export does not guarantee positive vertex coordinates HOT 2
- remnants of submodules HOT 2
- missing faces in face circulator HOT 2
- Curious, is this topology a legitimate and supported halfedge data structure? HOT 2
- extract texture png file HOT 1
- Valence of faces are unexpectedly 0, affecting is_triangle_mesh() HOT 6
- Issue in hole filling algorithm HOT 1
- Parameterization with stitched edges
- Regression: Shader info logs are not reported on compile error HOT 3
- Keyboard modifier state is not tracked correctly when ImGui is capturing the keyboard HOT 2
- SurfaceMesh gives the error result HOT 1
- OpenGL 4.6 support? HOT 1
- In laplace_matrix function, Eigen SparseMatrix setFromTriplets gives "double free or corruption (out)" Error. HOT 5
- write_obj followed by read_obj crashes when the mesh has halfedge texcoords HOT 1
- Topology Exception reading binary STL files HOT 8
- Help Needed - How to use this in iOS Project
- Bug of Renderer::update_opengl_buffers? HOT 6
- Incorrect endianness in OFF file handling HOT 6
- WebGL demo apps broken with latest Emscripten release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmp-library.