Giter Club home page Giter Club logo

Comments (3)

dsieger avatar dsieger commented on June 3, 2024 1

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.

alejandro-machina avatar alejandro-machina commented on June 3, 2024

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)

  1. Use out-of-the-box CAD software like solidworks or rhino and let that software do the import to STL
  2. 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.

dsieger avatar dsieger commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.