arXiv:2610.26309cs.LGOct 2026

Manuscript Offprint

arXiv:2610.26309

CAST: Cast-Admissible Generative Design and Shape Optimization with Paired Depth Images

Jihoon Kim, Yongmin Kwon, Namwoo Kang

ABSTRACT

Deep generative design can produce complex geometries, but unconstrained representations may create undercuts that prevent release from a two-part mold. We present CAST, which reformulates three-dimensional shape generation under a selected mold-opening constraint as a two-dimensional image generation problem using paired top and bottom depth images. Each valid depth pair defines one material interval along a selected mold-opening direction, so reconstructions exclude undercuts in that direction by construction. Diffusion models generate candidate shapes in this representation, and a finite element analysis (FEA) guided optimizer refines the same two boundaries. We evaluate diffusion-based generation with limited training data comprising 211 SimJEB bracket designs. On SimJEB brackets, FEA-guided refinement with a volume penalty reduced compliance in 193 of 200 generated candidates. The median reduction across all candidates was 36.8 percent in the optimization FEA model. Reconstruction of existing brackets revealed a mass–stiffness trade-off: filling occluded regions increased material volume and reduced displacement under the evaluated loads. Paired depth images thus connect generative exploration and structural refinement in a shared design space that preserves the selected pull-direction restriction.

Keywords deep generative design, design for manufacturing, die casting, shape representation

1 Introduction

Deep generative models are increasingly used in engineering design to synthesize large and diverse sets of candidate geometries from limited prior designs [1–3]. Recent applications span native three-dimensional shape synthesis, topology-optimized structural components, and architected material systems [4–7]. For these models to contribute to mass production, however, generated candidates must satisfy not only functional objectives but also the geometric requirements of the intended manufacturing process. Although additive manufacturing can accommodate many complex proposals, its production rate and unit cost do not always suit large production volumes [8, 9]. At high volumes, die casting and injection molding remain economical because tooling and setup costs are spread across many parts [10–12]. Components produced by these processes must permit mold separation along a feasible draw direction, avoid undercuts, and provide sufficient draft for ejection [13–15]. Functional and assembly interfaces impose additional, part-specific geometric constraints. When these requirements are introduced only after generation, geometric repair can alter both the candidate shape and its mechanical behavior.

The central challenge is therefore not simply to generate complex geometry, but to make relevant manufacturing constraints native to the design space. Geometric representations chosen for expressive flexibility do not necessarily preserve such constraints as designs move between generation, reconstruction, analysis, and refinement. Constraint checks and learned design repair provide ways to handle these violations [1, 16]. A process-aware representation

(a) Closed mold

Figure

Mold occupies the side recess

(b) Attempted separation

Figure

Undercut blocks upward motion

(c) Two-boundary reconstruction

Part

Mold

Interference

Added material

Figure

No pull-direction interference

Figure 1: Undercuts and mold separation along the selected pull direction. (a) Mold material occupies a side recess in the part. (b) Attempted upward motion of the upper mold produces interference with the part, highlighted in red. (c) Filling the interval between the opposing boundaries removes the recess and the pull-direction interference. Sage-green hatching marks the added material.

Figure

Original Shape

Depth Calculation

top

bottom

Shape

Reconstruction

Figure

Undercut-Free

Reconstruction

Figure 2: Depth calculation and reconstruction for paired top and bottom fields. Orthographic rays record first-surface distances from opposite camera planes, and the interval between the paired surfaces is filled to reconstruct a solid with at most one material interval along the selected pull direction.

offers a more direct alternative: if every valid state already satisfies a critical geometric condition, generated candidates inherit that condition before screening or modification. For two-part molds, one such condition is the absence of undercuts along the selected pull direction. An undercut traps mold material and obstructs withdrawal along that direction (Fig. 1(a,b)).

To embed this condition in the shape representation, we use two depth images viewed from opposite sides along the selected mold-opening direction. These images record the upper and lower surfaces, and the space between them is filled with material (Fig. 2). This construction leaves no hidden gaps beneath overhangs that would obstruct mold withdrawal along that direction (Fig. 1(c)). We call shapes satisfying this geometric condition cast-admissible. The representation therefore excludes undercuts by construction.

This two-image representation enables two-dimensional generative models to propose candidate shapes without learning a dense volumetric field [17]. Appropriate inductive biases can improve learning from limited data by incorporating relevant structure [18]. By combining a compact representation with an explicit pull-direction constraint, CAST may therefore reduce training data requirements relative to unconstrained volumetric generation. The same upper and lower boundaries also serve as design variables for finite element analysis (FEA) guided shape optimization, allowing generated candidates to be refined while retaining the selected pull-direction restriction. We parameterize these boundary updates using cubic B-spline free-form deformation (FFD). Together, the paired-depth representation, generation, and shape optimization form the CAST framework shown in Fig. 3.

We evaluate CAST on the SimJEB bracket family [19]. Generation experiments demonstrate the creation of new candidates within the paired-depth design space, and FEA-guided optimization demonstrates structural improvement through updates to the same boundaries under a volume penalty. Reconstruction experiments complement these results by quantifying the geometric and mass–stiffness trade-offs involved in mapping existing designs into this space.

(a) Undercut-free Shape Reconstruction

Figure

3D Shapes with Non-manufacturable Undercuts

2D Depth Images (Top and Bottom)

Undercut-free

Shape Reconstruction

(b) Undercut-free Design Generation

Denoising Diffusion

Probabilistic Model

(DDPM)

Generated 2D Depth Images

Undercut-free

3D Mesh Generation

(c) Undercut-free Design Optimization

free (z-movable) fixed (interface)

Define a Control Lattice

Perform FEA & Sensitivity Analysis

Iteratively Update Control Points for Refined Geometry

Figure 3: The CAST framework. (a) Valid paired depth fields reconstruct a solid without undercuts along the selected pull direction. (b) A diffusion model generates new paired depth fields. (c) FEA-guided optimization refines the same upper and lower boundaries along that direction while keeping the in-plane footprint fixed.

The contributions of this work are:

• a paired-depth representation that reformulates pull-direction-constrained 3D shape generation as a two-dimensional image generation problem, with valid reconstructions excluding undercuts by construction;

• a generation and FEA-guided shape optimization framework that refines the same depth boundaries used to generate candidates while retaining the selected pull-direction restriction; and

• a structural assessment of paired-depth reconstruction that establishes its mass–stiffness trade-off on SimJEB brackets, showing how filling occluded regions increases material volume and reduces displacement across the evaluated load cases.

Section 2 reviews related work. Section 3 presents the paired-depth representation, generative models, and FEA-guided refinement. Section 4 evaluates reconstruction, generation, and shape optimization, followed by a discussion of the findings and limitations in Section 5 and conclusions in Section 6.

References (64)