Geo2Gcode: From 3D Geometry to CNC Programs 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.
Create a lesson
Related papers
GeoMVGen: Joint Appearance-Geometry Modeling for Multi-View Video Generation in Robotic Manipulation
Shared title terminologycs.CVQiaoqiao Jia, Guile Wu, Dongfeng Bai
RePT: 3D Geometry Emerges from 2D Relational Pretraining
Shared title terminologycs.CVXize Duan, Binke Hou, Xingqiao Huang et al.
InitFree-SfM: When Initialization-Free Bundle Adjustment meets Learned Structure-from-Motion
Shared title terminologycs.CVSimon Weber, Mateo de Mayo, Je Hyeong Hong et al.
TowerBridge: Bridging the Dual-Encoder Modality Gap via Weight-Space Programming
Shared title terminologycs.CVHani Alomari, Md Atabuzzaman, Chris Thomas
CrownFusion: 3D Dental Crown Generation Using Geometry Images and Latent Diffusion
Shared title terminologycs.CVJohan Ziruo Ye, Xingguang Yan, Søren Hauberg et al.
XFreq: Geometry-Aligned Cross-View Residual Learning for Sparse 3D Ultrasound Reconstruction
Shared title terminologycs.CVYuhuan Lu, P. Ellen Grant, Davood Karimi