ShapeMOD: macro operation discovery for 3D shape programs
R. Kenny Jones, David Charatan, Paul Guerrero, Niloy J. Mitra, Daniel Ritchie
Abstract
A popular way to create detailed yet easily controllable 3D shapes is via procedural modeling, i.e. generating geometry using programs. Such programs consist of a series of instructions along with their associated parameter values. To fully realize the benefits of this representation, a shape program should be compact and only expose degrees of freedom that allow for meaningful manipulation of output geometry. One way to achieve this goal is to design higher-level macro operators that, when executed, expand into a series of commands from the base shape modeling language. However, manually authoring such macros, much like shape programs themselves, is difficult and largely restricted to domain experts. In this paper, we present ShapeMOD, an algorithm for automatically discovering macros that are useful across large datasets of 3D shape programs. ShapeMOD operates on shape programs expressed in an imperative, statement-based language. It is designed to discover macros that make programs more compact by minimizing the number of function calls and free parameters required to represent an input shape collection. We run ShapeMOD on multiple collections of programs expressed in a domain-specific language for 3D shape structures. We show that it automatically discovers a concise set of macros that abstract out common structural and parametric patterns that generalize over large shape collections. We also demonstrate that the macros found by ShapeMOD improve performance on downstream tasks including shape generative modeling and inferring programs from point clouds. Finally, we conduct a user study that indicates that ShapeMOD's discovered macros make interactive shape editing more efficient.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 7e6e569f-50bf-4796-8124-be39c717e90eCited by top-tier papers12
- babble: Learning Better Abstractions with E-Graphs and Anti-unificationDavid Cao, Rose Kunkel, Chandrakana Nandi, Max Willsey et al.POPL 2023 · 38 citations
- Top-Down Synthesis for Library LearningMatthew Bowers, Theo X. Olausson, Lionel Wong, Gabriel Grand et al.POPL 2023 · 32 citations
- ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured PrimitivesR. Kenny Jones, Paul Guerrero, Niloy J. Mitra, Daniel RitchieSIGGRAPH 2023 · 19 citations
- Unsupervised Learning of Shape Programs with Repeatable Implicit PartsBoyang Deng, Sumith Kulal, Zhengyang Dong, Congyue Deng et al.NeurIPS 2022 · 18 citations
- Discovering Design Concepts for CAD SketchesYuezhi Yang, Hao PanNeurIPS 2022 · 18 citations
Builds on3
- Learning Shape Templates With Structured Implicit FunctionsKyle Genova, Forrester Cole, Daniel Vlasic, Aaron Sarna et al.ICCV 2019 · 427 citations
- Fusion 360 gallery: a dataset and environment for programmatic CAD construction from human design sequencesKarl D. D. Willis, Yewen Pu, Jieliang Luo, Hang Chu et al.SIGGRAPH 2021 · 197 citations
- Synthesizing structured CAD models with equality saturation and inverse transformationsChandrakana Nandi, Max Willsey, Adam Anderson, James R. Wilcox et al.PLDI 2020 · 65 citations
Related papers
- ShapeCraft: LLM Agents for Structured, Textured and Interactive 3D ModelingShuyuan Zhang, Chenhan Jiang, Zuoou Li, Jiankang DengNeurIPS 2025 · 6 citations
- ShapeWalk: Compositional Shape Editing Through Language-Guided ChainsHabib Slim, Mohamed ElhoseinyCVPR 2024 · 4 citations
- ShapeTalk: A Language Dataset and Framework for 3D Shape Edits and DeformationsPanos Achlioptas, Ian Huang, Minhyuk Sung, Sergey Tulyakov et al.CVPR 2023
- PyTorchGeoNodes: Enabling Differentiable Shape Programs for 3D Shape ReconstructionSinisa Stekovic, Arslan Artykov, Stefan Ainetter, Mattia D'Urso et al.CVPR 2025
- MeshCoder: LLM-Powered Structured Mesh Code Generation from Point CloudsBingquan Dai, Li Ray Luo, Qihong Tang, Jie Wang et al.NeurIPS 2025 · 19 citations
