InsightSoftwareConsortium / InsightSoftwareConsortium/ITK

IOMeshSTL: Reading some binary STL Files will fail

Open
#6,289 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.7k
Forks
748
Avg merge
1d 1h
Merged PRs (30d)
64

Description

The `IOMeshSTL` module was ingested into ITK from the (now archived) `ITKIOMeshSTL` remote module. This issue tracks, in ITK proper, the work originally filed as **InsightSoftwareConsortium/ITKIOMeshSTL#44** by @imikejackson (2022-11-18).

---

The binary STL specification allows STL files to store up to unit16 bytes worth of information at the end of each triangle. The current code simply ignores that value. While the vast majority of files set that value to zero or incorrectly set it to a non-zero and but don't write anything further to the stream, there are more and more manufacturers that use STL files in the additive manufacturing world (Magics Materialise being one) that do in fact use those 65K bytes to write information about each triangle. The code should take into account how much to move the input stream forward after each triangle.

---

Original report: https://github.com/InsightSoftwareConsortium/ITKIOMeshSTL/issues/44 (archived repository). Credit: @imikejackson.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.