Urgent.News

What's breaking now, across thousands of outlets.

Tech

Hackaday wrote about my STL to CAD tool, and the first bug report it brought was a good one

This week Hackaday ran a short piece on mesh2cad, my open source tool that turns an STL of a simple mechanical part into STEP or an editable CadQuery, OpenSCAD or FreeCAD script: https://hackaday.com/2026/11/19/mesh2cad-automates-re-modelling/ The repo went from 14 to around 80 stars in a day, which is more than the previous month. More useful than the stars was the first proper bug report from…

Hackaday recently featured mesh2cad, an open source tool that converts STL files of mechanical parts into STEP or editable script formats for CadQuery, OpenSCAD, and FreeCAD. This new release caused a surge in popularity, with star count jumping from 14 to around 80 within a day. More valuable than the stars, however, was the first legitimate bug report from a stranger.

The reporter converted a noisy test plate (80 x 50 x 6 mm, with four holes) and opened the resulting STEP file in OCP instead of trusting the tool's exit code. The issue was that the solid was inside-out and had negative volume, even though the tool exited with a 0 status. In another case, the solid was valid but located about 6 mm away from the original mesh.

The problem stemmed from the fallback path: when a least squares snap moved a vertex too far, the code projected that vertex onto the first fitted surface without checking the distance. On thin plates, the first surface was sometimes the opposite wall, causing the top face to be pulled down by the plate thickness.

In version 0.32.0, the projection now checks if moving the vertex exceeds the snap limit, and if so, the original vertex remains in place. Before writing any output, the tool verifies the signed volume. A reversed solid or a hybrid with a volume deviation over 5% or situated too far from the mesh is dropped, and a plain faceted solid is written instead. An inside-out solid will never be written.

The bug report also mentioned that one of the Original Prusa i3 printer's parts came back faceted in version 0.31.0. However, upon testing, the author found that the issue was resolved in both 0.22.0 and 0.32.0, as the parts were exact (210 planes, 4 cylinders) and the sewing code hadn't changed between releases.

The author added a slow test to lock the face counts of all six Prusa parts, and requested the reporter's OCP version. As with previous versions, mesh2cad is designed for simple mechanical parts like brackets and plates, but complex organic shapes or heavy-noise scans still yield faceted results or are refused. This is intentional, as the goal is to prevent incorrect solids rather than risking writing a faulty one. To report a badly converting STL file, the author suggests submitting an issue with the file attached.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Faceless Video Automation in n8n: Outline, Costs, Limits

Faceless video automation in n8n means chaining nodes so an idea goes in one end and a narrated video comes out the other: a trigger, an LLM for the script, a text to speech call, an image step and a…

  • Faceless video automation in n8n involves chained nodes for idea-to-narrated-video workflow
  • Services include LLM, voice, image source, and renderer nodes for video creation
  • Costs are time and upkeep due to service accounts, API changes, and rate limits

I Thought Building Websites Was About Coding. I Was Wrong.

I Thought Building Websites Was About Coding. I Was Wrong. For almost two years, I believed becoming a better developer meant writing better code.

  • Website building is about more than coding; it's about creating user experiences.
  • A website's impact lies in feelings of clarity, trust, and ease of use.
  • Personal branding in web development is about authentic user experiences, not just technical skills.

More from Friday 20 November →