Papers › CADFit: Precise Mesh-to-CAD Program Generation with Hybrid Optimization

CADFit: Precise Mesh-to-CAD Program Generation with Hybrid Optimization

2 May 2026ICMLarXiv:2605.01171added by Syntology

Ghadi Nehme, Eamon Whalen, Faez Ahmed

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Despite recent progress, recovering parametric CAD construction sequences from geometric input, such as meshes or point clouds, is a key challenge for design and manufacturing, as existing CAD reconstruction and generation methods are largely restricted to difficult-to-edit formats like meshes or Breps or editable simple sketch-and-extrude pipelines and low-complexity datasets. We introduce CADFit, a hybrid optimization-based CAD reconstruction framework that recovers complex, editable CAD construction sequences from meshes by incrementally fitting and validating parametric operations using geometric feedback. Our approach is distinguished by formulating reconstruction as an IoU-driven optimization over structured CAD programs and supporting a rich set of operations, including extrusions, revolutions, fillets, and chamfers. Experiments on multiple CAD benchmarks show that CADFit outperforms state-of-the-art mesh-to-CAD methods in volumetric Intersection-over-Union and Chamfer Distance, while substantially reducing the Invalid Ratio of reconstructed CAD programs, particularly for complex designs. We further present a multimodal pipeline that enables end-to-end reconstruction of CAD construction sequences from images by combining image-based geometry reconstruction with CADFit. By enabling accurate reconstruction of higher-complexity CAD models, CADFit provides a practical foundation for generating richer datasets and advancing future learning-based approaches to CAD reverse engineering. The code is available at: https://github.com/ghadinehme/CADFit.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.01171")

Code

Syntology Ran 19 of 20 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 19 ran with no contract checked.

By repository: found in paper text by Syntology: 20 samples from 1 repository, 19 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ghadinehme/CADFit found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 19 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

19ran
1unverified

Licence: 20 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ghadinehme/CADFit. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

chamfer_distance ghadinehme/CADFit/analyze_loop_translation.py found in paper text by Syntology ran fingerprinted licence not identified · pointer only · 60b5af3eeb1bd12c · report
chamfer_distance ghadinehme/CADFit/analyze_revolve_axis.py found in paper text by Syntology ran licence not identified · pointer only · 5b3963c58f11f90f · report
check_symmetry_axis ghadinehme/CADFit/cadquery_ops.py found in paper text by Syntology ran licence not identified · pointer only · 589df38127fb08dd · report
detect_planar_regions ghadinehme/CADFit/extract_planar_contours.py found in paper text by Syntology ran licence not identified · pointer only · 74096943bb4c7a5a · report
find_symmetry_axis ghadinehme/CADFit/cadquery_ops.py found in paper text by Syntology ran licence not identified · pointer only · 3673e9c7066591a9 · report
fit_line_2d ghadinehme/CADFit/fit_primitives.py found in paper text by Syntology ran fingerprinted licence not identified · pointer only · 50475ce340081564 · report
is_rectangular_loop ghadinehme/CADFit/extract_sketches.py found in paper text by Syntology ran licence not identified · pointer only · 643c35b12f652ef8 · report
load_revolve_analysis ghadinehme/CADFit/greedy_search.py found in paper text by Syntology ran licence not identified · pointer only · 567c7eb87007bab9 · report
load_translation_analysis ghadinehme/CADFit/greedy_search.py found in paper text by Syntology ran fingerprinted licence not identified · pointer only · 4bcfc2036a4341bb · report
normalize_mesh ghadinehme/CADFit/iou.py found in paper text by Syntology ran licence not identified · pointer only · 4641e265df5cabf6 · report
plane_basis ghadinehme/CADFit/fit_primitives.py found in paper text by Syntology ran licence not identified · pointer only · 986c3f996a0fe73f · report
project_3d_to_2d ghadinehme/CADFit/analyze_revolve_axis.py found in paper text by Syntology ran licence not identified · pointer only · 877761ba53e5975b · report
project_3d_to_2d ghadinehme/CADFit/cadquery_ops.py found in paper text by Syntology ran licence not identified · pointer only · 2f3ea557afe19b84 · report
project_points_to_plane ghadinehme/CADFit/fit_primitives.py found in paper text by Syntology ran licence not identified · pointer only · 49b7bda246895fc8 · report
quantile_slices ghadinehme/CADFit/extract_sketches.py found in paper text by Syntology ran licence not identified · pointer only · c436fe9d7c0a13e0 · report
remove_duplicate_planes ghadinehme/CADFit/extract_planar_contours.py found in paper text by Syntology ran licence not identified · pointer only · 7844f59ccd90eaec · report
render_refined_script ghadinehme/CADFit/refine_edges.py found in paper text by Syntology ran licence not identified · pointer only · 5769c82e74c2cb90 · report
run_command ghadinehme/CADFit/run_pipeline.py found in paper text by Syntology ran licence not identified · pointer only · ccf01b31fb65fecc · report
translate_loop_along_normal ghadinehme/CADFit/analyze_loop_translation.py found in paper text by Syntology ran licence not identified · pointer only · b983e3ddb4c355cd · report
load_filter ghadinehme/CADFit/filter_loops.py found in paper text by Syntology unverified licence not identified · pointer only · 8929731486831c4b · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.01171, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections