Geo2Gcode: From 3D Geometry to CNC Programs through Structured Machining Primitives
Sangmin Hong, Dohee Cho, Mohsen Yavartanoo, Kyoung Mu Lee
Key points
From the paper's conclusion- We present Geo2Gcode, which converts a target mesh directly into standard G-code through structured machining primitives.
Abstract
Turning a 3D shape into a Computer Numerical Control (CNC) program is still largely manual. For every part, a machinist chooses setups, tools, step-downs, and toolpath patterns. We present Geo2Gcode, which converts a target mesh directly into standard G-code through structured machining primitives. Each primitive couples an indexed machining direction, a closed per-view reconstruction of the target, and explicit tool-radius, layer-height, and clearing-pattern parameters, and compiles deterministically into layerwise toolpaths via signed-distance queries. Most of the fidelity comes from this compiler. A lightweight selector trained with a voxel stock simulator fills in primitive parameters without per-part manual settings, approaching the finest fixed setting at about a quarter of its toolpath length. In simulation on ABC parts, Geo2Gcode reaches roughing fidelity comparable to an expert-tuned commercial CAM setup with a moderately longer toolpath, and clearly improves on a default CAM configuration. Generated programs run in a commercial G-code simulator, and one part is machined on a physical CNC mill. These results demonstrate that roughing programs can be generated directly from geometry without per-part CAM tuning.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- CNCGEN: A Dataset and Framework for Machining Process Planning and Toolpath Generation from B-rep ModelsarXiv · 2026
- MillBill: A Machining Agent with Geometric FeedbackarXiv · 2026
- Influence of geometric-process representation explicitness on transformer-based NC code generationThe International Journal of Advanced Manufacturing Technology · 2026
- GOPR-CAD: Graph-of-Operations Progressive Reasoning for CAD GenerationarXiv · 2026
- Slicer-independent generation of customizable non-planar toolpaths for fused filament fabricationThe International Journal of Advanced Manufacturing Technology · 2026
- CRAFT: Corrective and Robust Multi-Agent Framework for Text-to-Parametric CADarXiv · 2026