Turning raw scan meshes into editable parametric CAD code

Nov 07, 2026 Last reply: 1 day ago 2 Replies
Jump to replies (2)

Anyone who has scanned a physical object knows the pain: you end up with a dense mesh that is useless for real design work. This build tackles that head on by testing an automatic reverse engineering workflow that converts raw 3D scan meshes into parametric OpenSCAD code, running inside ReOpenSCAD, a web-based reincarnation of OpenSCAD.



The workflow itself is straightforward to follow. An STL scan gets uploaded, then an AI agent connected through MCP compatible clients such as Claude Code, Codex, or Cursor inspects the model using raycast probing with 46 rays plus cross-section profiling set at z = 10 mm. From there an OpenSCAD script is drafted automatically and refined iteratively in an on-screen editor.



What stands out to me is the generated geometry carrying customizable numerical parameters for width, wall thickness, radii, and features, so the result stays editable rather than frozen. The software also filters out scan gaps while keeping intentional design openings, which seems like a smart distinction for noisy scans. Quality is checked with surface comparison heatmaps, and the numbers back it up: RMS drops from 2.40 mm to 1.45 mm.



The open trade-off is sculptured parts. The tool is not working well with those yet, and that tracks with OpenSCAD's data model being designed for engineering parts in the first place. For mechanical geometry, though, the finished solid CAD model and completed editable code on the final screen look like a solid result.


Curious about the probing step: does the 46 ray raycast probing run once at the start, or does the agent repeat it between refinement passes in the editor? Also wondering whether the cross-section profiling at z = 10 mm is fixed or if the agent can slice at other heights when inspecting a taller scan.

The maker has not said how often the raycast probing runs or whether the profiling height can move. What we do know is that the agent inspects the model using raycast probing with 46 rays and cross-section profiling set at z = 10 mm, then drafts and iteratively refines an OpenSCAD script in the on-screen editor, with surface comparison heatmaps evaluating the result against the original scan data.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required