TL;DR
This paper introduces a novel bidirectional editing system for 3D CAD that allows users to seamlessly switch between modifying a program’s code and directly manipulating its 3D geometry. By leveraging a custom differentiable domain-specific language (DSL), the system automatically infers the necessary parameter updates to keep the underlying program in sync with geometric "drags," providing a gallery of plausible design variations based on different optimization heuristics.
What Problem Does This Paper Address?
Modern Computer-Aided Design (CAD) typically forces a choice between two paradigms: parametric modeling and direct modeling.
Parametric modeling (like Solidworks or Fusion 360) represents designs as a sequence of operations (a "history"). This is powerful for maintaining design intent and creating variations, but it’s cumbersome to edit—changing a shape often requires hunting through hundreds of parameters. Direct modeling allows users to "sculpt" geometry by dragging vertices or faces, providing immediate feedback. However, this often destroys the underlying program structure, making it impossible to perform high-level updates later.
The authors bridge this gap by enabling bidirectional editing. They want a system where you can drag a part of a 3D model and have the underlying code parameters update automatically to match, without breaking the model's structural integrity or "safety" (e.g., preventing geometry from turning inside out).
Methods
The core of the system is a custom differentiable DSL for CAD. Here’s how the pipeline works:
- Interpretation: When a CAD program is executed, the system builds a computation graph (Figure 3) that tracks how every vertex position depends on the input parameters.
- Automatic Differentiation: Because the operators in the DSL are differentiable, the system can calculate the gradient of the vertex positions with respect to the program parameters.
- Compiled Optimization: To ensure interactive speeds, the computation graph is compiled into native code.
- Inverse Editing via Optimization: When a user drags a vertex to a new position, the system treats this as an optimization problem. It searches for a new set of parameters $P^*$ that minimizes the distance between the current geometry and the user's target.
To handle ambiguity—the fact that many different parameter changes could satisfy a single drag—the system optimizes against several "energy functions" simultaneously. These heuristics include minimizing parameter change, preserving edge lengths, or maintaining physical properties like the center of mass.
Datasets
The authors evaluated their system on a variety of hand-authored CAD models of varying complexity, including:
- Furniture: A bench/chair (Figure 1), a dresser, and a lamp.
- Mechanical parts: A camera mount (Figure 2).
- Organic/Freeform shapes: A slipper (Figure 7) and a chandelier (Figure 8).
- Architectural elements: A castle.
These models range from roughly 200 to 29,000 arithmetic operations in their computation graphs.
Key Insights and Ideas
- The "Option Gallery": Since there isn't one "correct" way to resolve a geometric edit, the system presents the user with a gallery of results (Figure 6). For example, dragging the heel of a shoe upward might result in a taller heel (minimizing parameter change) or a thicker sole (minimizing vertex deformation). This lets the user choose the result that best matches their intent.
- Differentiable DSL vs. Differentiable Kernel: Instead of trying to differentiate a massive, complex CAD kernel (which is slow and prone to failures), they created a lightweight DSL that generates a clean computation graph. This allows for sub-second optimization even on models with hundreds of parameters.
- Safety through Constraints: The system automatically injects constraints into the optimization (e.g., ensuring an extrusion length stays positive) to prevent the optimizer from producing "illegal" or non-manifold geometry.
Key Results
- Performance: The system achieves interactive performance. For most models, the "Sync" time (optimizing 6 different objectives) takes between 0.7s and 1.9s. Even for a complex chandelier model with nearly 20,000 operations, synchronization takes only about 1 second for typical edits.
- Qualitative Success: In an informal user study, participants found that inverse editing made creating design variations significantly easier than traditional manual parameter tuning.
- Structural Preservation: Unlike standard mesh deformation, this approach preserves high-level structures like symmetries and patterns because it operates directly on the program parameters (Figure 5).
Limitations and Future Work
- Static Topology: The current system cannot handle edits that change the "topology" of the model (e.g., adding a new hole or a new leg) via direct manipulation. These changes must still be made by editing the code.
- Parameter Normalization: Currently, the system treats all parameters equally. However, a 1-unit change in a "rotation" parameter has a much larger geometric impact than a 1-unit change in "length." Future work could involve better normalization to make the optimization more robust.
- Discrete Parameters: The system currently only handles continuous parameters. Incorporating discrete choices (like the number of legs on a chair) into the differentiable framework remains an open challenge.
Summary updated