Structure and Appearance Optimization For
Structure and Appearance Optimization For
shape design
Jonàs Martínez, Jérémie Dumas, Sylvain Lefebvre, Li-Yi Wei
Problem
Symmetry
Exemplars
Figure 1: Our technique automatically generates rigid shapes answering a specific loading scenario and resembling an input
exemplar pattern, while using a user-specified quantity of material. Top left: Loading scenario; in this case the synthesized
shape is anchored to the ground by its bottom left/right corners, while supporting a road through four attachments. Each
attachment contains an empty region (white) surrounded by a solid boundary (blue), serving as a socket to plug in the road
plank. Bottom left: Two exemplars defining the desired appearance. Second column: Two synthesized bridges answering the
loading scenario but each using a different exemplar. Photograph: Fabricated objects using the synthesized shapes.
Our method combines two fundamental ingredients. The first We model the shape in an n-dimensional grid of square el-
is the notion of appearance as defined by neighborhood sim- ements denoted by x, each having 2n corner nodes shared
ilarities between a synthesized structure and an example with their neighbors. Each element e in x receives a density
pattern. The second comes from mechanical engineering and xe which through optimization has to converge towards void
is the notion of compliance. Figure 3 provides an overview of (= 0) or solid (= 1), thus defining an interior and exterior. In
our method. practice, intermediate values remain after optimization, and
we apply a thresholding after convergence.
The basic problem in which compliance appears is the pre-
diction of the mechanical behavior of a structure when it is We formulate our goal as a multi-objective optimization prob-
subjected to precise boundary conditions — that is, a set of lem that minimizes both an appearance energy AI (x) and
attachment points and external loads applied to the struc- the structural compliance C (x):
ture. In this work we consider small deformations for which x = arg min (AI (x) , C (x))
the behavior of the structure can be characterized by linear x
elasticity. We consider isotropic materials described by their , where I is the input exemplar — a black and white pattern
Young’s modulus and Poisson’s ratio. The compliance is the defining void (pixel = 0) and solid (pixel = 1) regions; x
is the outcome — densities defining a shape in the grid —
computed through our optimization procedure. The user has
Boundary conditions Exemplar to specify at least one attachment point for the problem to be
well-posed. She can optionally impose additional conditions,
such as regions of void or fill, symmetry, and external forces;
see results in Figure 1 and Section 6.
Previous works exist to optimize each of these energies in
isolation (Section 2). Therefore, a straightforward approach
Compliance Compliance and would optimize for a linear blend of both energies, that is:
Level
optimization appearance optimization
AI (x) + λC (x) (1)
with λ > 0 allowing to explore the tradeoff. Unfortunately,
0
such a simple scheme does not produce reliable results: the
values of λ that can produce a reasonable output differ widely
between exemplars, boundary conditions, and domain size,
when they exist at all. Figure 5 illustrates this issue and
compares to our formulation.
1
We therefore propose to modify the formulation of the prob-
lem. We note that the goal is not necessarily to obtain the
most rigid structure, but rather a structure with sufficient
rigidity, i.e. which does not yield under the given loads. Thus,
2 our insight is that rigidity should be considered as a con-
straint, which can be relaxed to allow more freedom for the
appearance objective. Thus, our goal is now to minimize
AI (x) such that the structural compliance is below a thresh-
Figure 3: Overview of our multi-resolution optimization old Cmax and the volume is bounded:
approach. Given an input exemplar (upper right) and out-
put boundary conditions (upper left), our method optimizes arg min : AI (x)
x
the corresponding output in a multi-resolution fashion (lower subject to : C (x) 6 Cmax
rows). The boundary conditions can include support, solid, X
and void. In this example, the volume is constrained to 35% vmin 6 xe 6 vmax
of the overall output domain, and the relaxation factor of the e
compliance with respect to the optimal is set to α = 1.2.
∀e 0 6 xe 6 1
Exemplar Weighted sum optimization via eq. (1) Our method
λ=1 λ = 50 λ = 300 α = 1.2
Figure 5: Comparison of a straightforward weighted sum approach and our formulation. All results use the same parameters
and a volume constrained to 30% of the entire domain. We give below each result the ratio between its compliance and the
compliance of the shape optimized without appearance objective (Copt ) ; e.g. ×1.2 implies the result is within 20% of the
computed optimum. λ weights the importance of rigidity versus appearance. On the left hand side, a low λ gives results with
good appearance but mediocre compliance. On the right hand side, a large λ produces more rigid results but degraded appearance.
We show in orange the values of λ producing reasonable compromises, and in green and red the best and worst compliance ratios,
respectively. Note that these differ significantly between both exemplars. Our method (rightmost column) does not need any
specific setting besides the threshold from the computed optimum (20%). The boundary conditions are the same as in Figure 3.
The volume bounding constraint is important. The weight of Each square element e receives a continuous scalar density
the structure is often negligible compared to external forces, 0 6 xe 6 1, and its Young’s modulus is defined as:
in which case the most rigid shape would tend towards a full
block of material. vmax prevents this naive solution to exist. Ee = Emin + (xe )p (E0 − Emin )
On the contrary, when only considering the weight of the
, where E0 is the material Young’s modulus, Emin > 0 is
structure — i.e. solving a self-weight problem — the naive
a small value to prevent numerical instabilities, and p = 3
solution is an empty shape. vmin prevents it. The volume
is the standard SIMP penalization factor which penalizes
constraint is also a natural control for the user. Combined to
intermediate values in the solution.
appearance it allows changing the overall size of the structure
(see Figure 6). For the sake of clarity we express volume The compliance of the output is measured by summing the
constraints as a percentage of the design domain. We often compliance of each individual element. Let us denote:
use only external forces or only self-weight in which case we
respectively set vmin = 0% or vmax = 100%. In such cases u Global displacement vector.
we report only the non-trivial bound. ue Element displacement vector.
f Global force vector.
K Global stiffness matrix.
A meaningful value of the Cmax constraint is crucial to ensure K0 Element stiffness matrix with unit Young’s modulus.
a feasible solution. We describe how the threshold is com- t Element thickness.
puted in Section 3.1, and describe the appearance objective
in Section 3.2. We discuss our solver and numerical scheme Compliance minimization is formulated as follows:
in Section 4 and extensions in Section 5.
Copt = min : C (x)
x
X
3.1 Compliance Constraint subject to : vmin 6 xe 6 vmax
e
Figure 6: Progressive relaxation of the maximum compliance (top row) and maximum volume (bottom row) constraints.
Multi-resolution. For improved performance and quality we Forces due to the structure weight are modeled by a vertical
optimize through a multi-resolution scheme. The process force acting on each grid node q as follows:
starts from downsampled versions of the grid x and exem- X me
plar I. The resolution is iteratively doubled, using the pre- qx = 0, qy = −g xe
|qe |
vious result to initialize the next finer resolution by bilinear e , q∈qe
up-sampling. The process is illustrated in Figure 3.
, where qe is the set of nodes belonging to element e (as
defined in Section 3), me is the element mass, and g is the
Our algorithm optimizes three resolution levels. The compli-
absolute value of the gravitational acceleration. Let us em-
ance relaxation parameter α remains constant throughout
phasize that this force depends on the current densities of
the process. The exemplar is downscaled to match the resolu-
the elements xe .
tion of each level. The strain-displacement and constitutive
material matrices are also changed according the resolution. When using the SIMP formulation on a problem taking into
account the weight of the structure, the displacements might
We use the same multi-resolution scheme to compute the become unbounded for low density regions, resulting in nu-
compliance solution (Section 3.1) and obtain Cmax for each merical issues [Bruyneel and Duysinx 2005]. We therefore
resolution level. In practice, we observe that the value of use a modified formulation of material stiffness as suggested
Cmax is remarkably stable across resolutions. by [Pedersen 2000] to overcome this problem:
Emin + (xe )p (E0 − Emin ) µ < xe 6 1
Ee = (3)
Convergence. The optimization process ends when k∇Ak
is Emin + xe µp−1 (E0 − Emin ) 0 < xe 6 µ
kAk
below a small threshold (we use 0.001), or when a maximum In our experiments we set µ = 0.25. This switches to a linear
number of iterations is reached (in our implementation we stiffness model in regions of low densities. The derivatives are
use 40, 20, 10 on the three successive resolution levels). updated accordingly. The non-differentiable point where the
switch between models occurs does not have a detrimental
impact in practice [Bruyneel and Duysinx 2005].
5 Extensions
We observe that on self-weight problems the volume bounds
vmin , vmax have to allow for some freedom to achieve con-
Optional constraints can be added to our basic formulation. vergence. Indeed, the optimized shape is a subtle tradeoff:
We describe two important ones. The first is to consider adding matter makes some regions more rigid but also adds
the weight of the structure itself during optimization (Sec- stress to others through gravity. Figure 7 illustrates results
tion 5.1). This is useful when there is no external force besides obtained on self-weight problems.
gravity applied to the structure. The second is to consider
symmetry constraints, which are useful for aesthetics pur-
poses but also to reduce computation time when the solution
5.2 Symmetry
is known to have symmetries (Section 5.2). We also describe
Symmetry plays an important role in aesthetics for
how to optimize for 3D outputs even though our method is
shape design. We adopt the symmetry reduction approach
dimension agnostic (Section 5.3).
of [Kosaka and Swan 1999] for topology optimization. The
design domain x is partitioned into S > 1 subdomains xi .
5.1 Self-weight We define a mapping between xi and an imaginary domain
x∗ , and only optimize for x∗ . The derivatives are:
We optionally take into account the weight of the structure ∂C 1 X ∂C
∗
=
and the forces it generates under gravity. Note that on self- ∂xe S xie
i
weight problems — i.e. no external forces — the complete
void is a trivial optimal. We therefore impose vmin > 0 in That is, we compute the derivatives for the design domain x,
such cases. and optimize x∗ according the averaged derivatives given by
Compliance optimization 6 Results
Boundary conditions Standard Using eq. (3)
Most of our results are obtained by laser cutting from the syn-
thesized shapes. We then assemble objects by gluing several
planks together. In most cases, we compute and assemble
independent 2D results, under the assumption that forces
remain in a plane — which works well in practice for most
32% volume 27% volume scenarios. We however also investigated full 3D solutions, as
Compliance and appearance optimization described in Section 5.3.
Before presenting our results in more details Section 6.2, we
describe Section 6.1 how we obtain the final curves for laser
cutting. We discuss performance in Section 6.3 and validation
tests in Section 6.4.
41% volume 43% volume 34% volume Contours for laser cutting are extracted in a few simple steps.
The optimized shape x is first thresholded (0.5) to snap values
Figure 7: Optimizing self-weight problems (no external which are between 0–1 to void or solid. In rare cases, this
forces). Top: A different material stiffness model is required results in the creation of small disconnected components. We
to avoid degeneracies in low density regions. Bottom: All filter these by keeping the connected components anchored
results use the same parameters α = 2.2, vmin = 20%, to attachment points. Disconnected components are further
vmax = 100%. Self-weight problems are more challenging discussed in Section 6.5. Finally, the filtered grid is upsampled
to optimize (see text), and therefore the bounds are relaxed by bilinear filtering (x2 in our implementation), and paths
to let the optimizer converge. Note how different volumes are for laser cutting are extracted along the isovalue 0.5.
obtained depending on the exemplar.
6.2 Fabricated Objects
Compliance optimization only We created several objects using our approach. In all cases,
the user only specified the attachment points, external forces,
x1 x2 target volume and example pattern. The algorithm automat-
Symmetry x∗ ically synthesizes the structure. Thus, many results can be
easily produced using a variety of patterns: the algorithm
Compliance and appearance deals with the complex task of generating the intricate de-
tails of the final structure. While we only laser cut miniatures,
industrial cutters could be employed to fabricate large-scale
objects in a variety of materials.
Besides attachment points and external forces, the
user may also rely on passive elements, which can
represent non-designable parts with a fixed density.
Figure 8: Constrained symmetry, with boundary conditions The inset figure illustrates the use of
defined on x∗ . Maximum volume is constrained to 45%. passive elements to optimize a struc-
ture around the SIGGRAPH logo.
This is obtained by constraining the
the mapping. Note that even though all xie variables map value of xe , that is xmin 6 xe 6 xmax .
to the same x∗e , their individual gradients on the right-hand If desired, other passive element prop-
side may differ due to asymmetric loading scenarios. erties can be predefined, such as the material volumetric mass
density and stiffness.
5.3 Optimizing 3D Structures In Figure 10 different bridge sides supporting a road are
obtained by changing the loading scenario. A symmetry con-
straint is also used, but this is optional. Results using different
Our formulation is amenable to 3D, adding a third dimension patterns on the same set of conditions are shown Figure 1.
and using a grid of cubic (hexahedral) elements. While this In Figure 11 a set of shelves is produced. They are designed
would provide a full volume synthesis, such an approach is to be fixed on the ground and to support several shelves offset
computationally expensive and requires a 3D exemplar as from the attachment point: the weight is entirely supported
input (schemes using several 2D exemplars to define a volume by the sides. Yet, the structure remains visually similar to
could be adapted [Wei et al. 2009]). the exemplar pattern. In Figure 12 we apply the same prin-
ciple to produce phone stands. Figure 13 shows a variety of
Instead, we propose to optimize structures along several in- tables obtained by interleaving three planks. Using different
terleaved planes in 3D, as illustrated in Figure 9. This is patterns immediately changes the look and feel of the results.
different from independently optimizing 2D shapes: the 3D The tables are very strong and can support large weights.
hexahedral elements at the crossing of several planes are
shared, and stresses and appearance propagate across the Finally, we show in Figure 9 3D results where the structures
different planes. The results in Figure 9 show how pattern along each plane are optimized jointly in an interleaved 3D
features are able to flow from one plane to another. problem. This allows the pattern to flow from one plane
Figure 9: 3D synthesis. From left to right: Boundary conditions, result optimized without appearance, two fabricated chairs
from our optimized results using different patterns.
Symmetry
Symmetry
Ma, C., Huang, H., Sheffer, A., Kalogerakis, E., and Xu, K., Zhang, H., Cohen-Or, D., and Chen, B. 2012. Fit
Wang, R. 2014. Analogy-driven 3D style transfer. Com- and diverse: Set evolution for inspiring 3D shape galleries.
puter Graphics Forum 33, 2, 175–184. ACM Trans. Graph. 31, 4, 57:1–57:10.
Panetta, J., Zhou, Q., Malomo, L., Pietroni, N., Zhou, Q., Panetta, J., and Zorin, D. 2013. Worst-case
Cignoni, P., and Zorin, D. 2015. Elastic textures for structural analysis. ACM Trans. Graph. 32, 4, 137:1–
additive fabrication. ACM Trans. Graph. 34, 4, 135:1– 137:12.
135:12. Zhou, S., Jiang, C., and Lefebvre, S. 2014. Topology-
constrained synthesis of vector patterns. ACM Trans.
París, J., Muínos, I., Navarrina, F., Colominas, I., and
Graph. 33, 6, 215:1–215:11.
Casteleiro, M. 2005. A minimum weight FEM formu-
lation for structural topological optimization with local Zhou, M., Lazarov, B. S., Wang, F., and Sigmund, O.
stress constraints. In VI World Congress on Structural 2015. Minimum length scale in topology optimization
and Multidisciplinary Optimization. by geometric constraints. Computer Methods in Applied
Mechanics and Engineering 293 , 266 – 282.
Paulino, G. H., and Gain, A. L. 2015. Bridging art and
engineering using Escher-based virtual elements. Struct.
Multidiscip. Optim. 51, 4, 867–883.
Pedersen, N. 2000. Maximization of eigenvalues using
topology optimization. Struct. Mult. Optim. 20, 1, 2–11.