{
  "id": 20870373,
  "title": "Hackaday wrote about my STL to CAD tool, and the first bug report it brought was a good one",
  "url": "https://urgent.news/2026/11/20/hackaday-wrote-about-my-stl-to-cad-tool-and-the-first-bug-report-it",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-20T07:56:36.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/emirmrkaljevic/hackaday-wrote-about-my-stl-to-cad-tool-and-the-first-bug-report-it-brought-was-a-good-one-271j"
  },
  "original_language": "en",
  "account": "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.\n\nThe 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.\n\nThe 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.\n\nIn 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.\n\nThe 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.\n\nThe 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.",
  "summary": "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…",
  "key_points": [
    "Hackaday featured mesh2cad, an STL to CAD tool converting files to STEP or script formats",
    "First legitimate bug report from a stranger led to a crucial fix in mesh2cad version 0.32.0"
  ],
  "editors_take": "Prioritizing geometric integrity over successful file generation shifts the tool's utility from a mere conversion utility to a reliable workflow component for mechanical engineers.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}