Algorithm Search⌘K

Modeladvanced

Discrete shells

Also called discrete shell model.

A thin shell model for triangle meshes. Membrane terms plus a bending energy that sums, over edges, the squared change of the bend angle times the rest edge length over a rest height.

Discrete shells is a model of thin flexible objects, such as hats, leaves, paper and cans, on a triangle mesh. A shell differs from a plate: a plate is flat when it is at rest, and a shell has a curved rest shape. The model keeps the membrane energies of a cloth simulator and replaces its bending term by an energy in the change of the angle at each edge, measured against a rest mesh that can be curved. It differs from bending springs of a mass-spring system, which cannot tell the sign of a fold, and from the quadratic bending model, which is its linearization about a flat rest shape for isometric motion.

The machine

The input is a 2-manifold triangle mesh with deformed positions xi∈R3\mathbf x_i \in \mathbb R^3 (m) and rest positions xˉi∈R3\bar{\mathbf x}_i \in \mathbb R^3 (m). The rest mesh does not have to be flat. A bar marks a rest quantity. For an edge ee the length is ∣e∣|e|. For a triangle the area is AA. For an interior edge ee with the two triangles t0t_0 and t1t_1, the bend angle θe\theta_e is the signed angle between the normals of t0t_0 and t1t_1, which is π\pi minus the dihedral angle; it is 00 when the two triangles are flat. The rest heights of the two triangles over ee are hˉ0=2Aˉ0/∣eˉ∣\bar h_0 = 2 \bar A_0 / |\bar e| and hˉ1=2Aˉ1/∣eˉ∣\bar h_1 = 2 \bar A_1 / |\bar e|, and

hˉe=16(hˉ0+hˉ1),\bar h_e = \tfrac16 (\bar h_0 + \bar h_1),

which is a third of the average of the two heights (Section 2 and the appendix of the paper give the two forms of the same constant).

The energy is W=kLWL+kAWA+kBWBW = k_L W_L + k_A W_A + k_B W_B (equation (3)) with

WL=∑e(1−∣e∣∣eˉ∣)2∣eˉ∣,WA=∑t(1−AtAˉt)2Aˉt,WB=∑e(θe−θˉe)2 ∣eˉ∣hˉeW_L = \sum_e \Big(1 - \frac{|e|}{|\bar e|}\Big)^2 |\bar e|, \qquad W_A = \sum_t \Big(1 - \frac{A_t}{\bar A_t}\Big)^2 \bar A_t, \qquad W_B = \sum_e (\theta_e - \bar\theta_e)^2 \, \frac{|\bar e|}{\bar h_e}

(equation (2) for WBW_B). WLW_L and WAW_A are the membrane terms of the reference code of the paper, and the authors say that any membrane model with small membrane strain will do. WLW_L has the unit m, WAW_A has m2^2 and WBW_B has no unit, so kLk_L is in N, kAk_A in N/m and the bending stiffness kBk_B in J. The stiffnesses are set by the user.

The masses are lumped: vertex ii gets a third of the rest area of its triangles times the area density ρ\rho (kg/m2^2). The motion is x¨=−M−1∇W(x)\ddot{\mathbf x} = -M^{-1} \nabla W(\mathbf x), plus an optional damping force proportional to (θ˙e−θˉ˙e)∇θe(\dot\theta_e - \dot{\bar\theta}_e) \nabla\theta_e per edge. The paper steps this with the Newmark method with β=1/4\beta = 1/4 for production runs, β=0\beta = 0 for debugging and γ=1/2\gamma = 1/2 for the least numerical damping, and takes the gradients and Hessians by automatic differentiation.

The bending term comes from the squared change of the mean curvature (equation (1)):

[Tr⁡(φ∗S)−Tr⁡(Sˉ)]2=4(H∘φ−Hˉ)2,[\operatorname{Tr}(\varphi^* S) - \operatorname{Tr}(\bar S)]^2 = 4 (H \circ \varphi - \bar H)^2,

where SS is the shape operator and HH the mean curvature. The appendix cuts the rest surface into one diamond tile per edge, made of the edge and the barycenters of its two triangles. The integral of H∘φ−HˉH \circ \varphi - \bar H over a tile is (θe−θˉe)∣eˉ∣(\theta_e - \bar\theta_e) |\bar e| (the authors cite Cohen-Steiner and Morvan), and the tile has the area (Aˉ0+Aˉ1)/3=∣eˉ∣hˉe(\bar A_0 + \bar A_1)/3 = |\bar e| \bar h_e. So the mean of the difference over the tile is (θe−θˉe)/hˉe(\theta_e - \bar\theta_e)/\bar h_e. The authors then set the integral of the square equal to the area times the squared mean, which they state for fine meshes with no degenerate triangles. This gives the term of WBW_B, with the factor 4 put into kBk_B.

  1. DISCRETE-SHELL-ENERGY(x, xbar, mesh, kL, kA, kB)
  2. 1W <- 0
  3. 2for each edge e: W <- W + kL (1 - |e| / |ebar|)^2 |ebar|
  4. 3for each triangle t: W <- W + kA (1 - A_t / Abar_t)^2 Abar_t
  5. 4for each interior edge e = (x0, x1) with triangles (x0, x1, x2) and (x0, x1, x3):
  6. 5n0 <- (x1 - x0) x (x2 - x0), n1 <- (x3 - x0) x (x1 - x0)
  7. 6theta <- atan2((n0 x n1) . (x1 - x0) / |x1 - x0|, n0 . n1)
  8. 7thetabar <- the same angle on the rest mesh
  9. 8hbar <- (hbar_0 + hbar_1) / 6
  10. 9W <- W + kB (theta - thetabar)^2 |ebar| / hbar
  11. 10return W

The rest quantities ∣eˉ∣|\bar e|, Aˉt\bar A_t, θˉe\bar\theta_e and hˉe\bar h_e are computed once. The use of atan2 on L6 is a choice of this page that keeps the angle accurate near 00 and near ±π\pm\pi.

The standing assumptions are: the object is thin (the paper takes a width to thickness ratio above 100); the deformation is mostly isometric, so the membrane stiffness is high; the membrane and bending energies are separate, which the authors call a reasonable simplification for animation; and the mesh is fine and has no degenerate triangles, for the derivation of WBW_B.

What it counts

The model gives the elastic energy WW (J), the internal forces −∇W-\nabla W (N) and, with a time stepper, the motion of the shell. Each edge term depends on the four vertices of the two triangles of the edge, so one evaluation of WW or of ∇W\nabla W costs Θ(∣E∣+∣F∣)\Theta(|E| + |F|) time for ∣E∣|E| edges and ∣F∣|F| triangles, which is O(n)O(n) for a mesh of nn vertices and bounded genus. The Hessian has a dense 12×1212 \times 12 block per interior edge and 9×99 \times 9 per triangle, so it is sparse with O(n)O(n) nonzeros, and it changes with x\mathbf x at every step. The paper gives no operation counts; its runs took from a few minutes to a few hours on a 2 GHz Pentium 4 (measured, the mesh sizes are not given).

Relation to other models

  • Bending springs. A mass-spring system resists bending by springs across the edges, which are coupled with stretch and see only the distance of the two far vertices. The paper notes that these springs are not sensitive to the sign of the dihedral angle, so they cannot hold a curved rest shape.
  • Baraff-Witkin cloth. Its bend condition is also a function of the angle between two triangle normals, but on a flat rest shape. The paper says that a cloth code of this kind becomes a shell code when the rest mesh is stored in 3D and θˉe\bar\theta_e is computed from it; stored rest angles on a flat rest mesh only allow developable shapes.
  • Elastically deformable models. Terzopoulos et al. use the difference of the metric and curvature tensors of a smooth surface and discretize at the end. Discrete shells defines the energy on the triangle mesh directly; the authors place their model in that framework.
  • Quadratic bending model. For a flat rest shape and isometric motion, Bergou et al. show that the edge based mean curvature vector is the linearization of this model, and of the models of Bridson et al. (2003) and Cohen-Steiner and Morvan, about the flat state. Result 7 below gives the exact relation for one edge.
  • Bridson, Marino and Fedkiw (2003). In the same proceedings they treat bending and wrinkles of cloth with a similar formula; the paper says so in Section 2.
  • Discrete elastic rods use the same discrete geometric approach for curves: a curvature on the mesh, a rest value and a squared difference.
  • Finite element shells. Kirchhoff-Love shell elements, for example on subdivision surfaces, solve the continuum shell equations. The paper presents its model as a simpler path with the same kind of behaviour, not as a discretization with a convergence proof.

Known results in the model

  1. Rigid motions and momentum (proved). Each term of WW depends only on edge lengths, triangle areas and bend angles of x\mathbf x, which do not change under a rigid motion. So the internal forces have zero sum and zero total torque, and they keep the linear and the angular momentum. The same holds for a rigid motion of the rest mesh.
  2. The rest shape is an equilibrium (proved). Every term is a square that is zero at x=xˉ\mathbf x = \bar{\mathbf x}, so W(xˉ)=0W(\bar{\mathbf x}) = 0 is the minimum and ∇W(xˉ)=0\nabla W(\bar{\mathbf x}) = 0. This holds for a curved rest shape too, which is the point of the model. If the rest angles θˉe\bar\theta_e are changed so that no surface with the rest lengths has them, the rest state is no longer free of stress; the paper shows this with a sheet of paper creased on one half.
  3. The sign of a fold counts (proved). θe\theta_e is signed. An edge with rest angle θˉ\bar\theta that is bent to −θˉ-\bar\theta has the bending energy 4θˉ2kB∣eˉ∣/hˉe4 \bar\theta^2 k_B |\bar e| / \bar h_e, not 00. A spring between the two far vertices of a flat pair of triangles has the same length for the angles θ\theta and −θ-\theta, by the reflection in the plane of the other triangle.
  4. Scale (proved). If x\mathbf x and xˉ\bar{\mathbf x} are both scaled by s>0s > 0, then θe\theta_e, θˉe\bar\theta_e and ∣eˉ∣/hˉe|\bar e| / \bar h_e do not change, so WBW_B does not change. The smooth energy ∫H2 dA\int H^2 \, dA has the same property. WLW_L scales with ss and WAW_A with s2s^2.
  5. Mean, not Gaussian, curvature (proved). The determinant of the shape operator in place of the trace gives the Gaussian curvature. It depends only on the metric (Gauss's Theorema Egregium), so its change is zero under isometric deformation, which is pure bending, and an energy in it would not resist bending. The paper uses this argument to choose the mean curvature.
  6. The simplified energy (stated by the authors, with a measurement). The term (θe−θˉe)2∣eˉ∣(\theta_e - \bar\theta_e)^2 |\bar e|, without hˉe\bar h_e, depends only on the shape and not on the triangulation. The appendix states that no discretization of equation (1) on piecewise planar surfaces can both depend only on the shape and converge under refinement, because the integral of the squared mean curvature of a polyhedral surface is in general unbounded. The paper gives this argument in two sentences and not as a full proof. In the hat runs on meshes with near uniform sampling, the simplified term gave results that the authors found satisfactory (measured, by visual comparison); they recommend equation (2) for meshes with nonuniform sampling.
  7. Relation to the quadratic bending model (proved). Take a flat rest pair of triangles, and an isometric bend by the angle θ\theta about the edge. The local energy of the quadratic bending model is then 12(2sin⁡(θ/2))2∣eˉ∣/hˉe\tfrac12 (2 \sin(\theta/2))^2 |\bar e| / \bar h_e (result 1 on that page). So it equals 12WB\tfrac12 W_B for the edge, up to a relative error of θ2/12\theta^2/12 to leading order, since 4sin⁡2(θ/2)=θ2−θ4/12+O(θ6)4 \sin^2(\theta/2) = \theta^2 - \theta^4/12 + O(\theta^6). A check on five random stencils gave the ratio 0.49999580.4999958 at θ=0.01\theta = 0.01, which is 12(1−θ2/12)\tfrac12 (1 - \theta^2/12) to the printed digits.
  8. Beams, hats and paper (measured). In the paper, a beam fixed at one end with the bending stiffnesses 100, 1000 and 10000 is more rigid for higher stiffness, and a beam with a V shaped cross section is more rigid than a flat beam with the same stiffness. A simulated hat dropped on a table was compared with video of a real hat and the brim bends in the same way; the comparison is visual. Plastic deformation is made by a change of the rest angles θˉe\bar\theta_e, which bends the rest shape without stretch; a change of xˉ\bar{\mathbf x} itself could add membrane strain.

References

  1. Eitan Grinspun, Anil N. Hirani, Mathieu Desbrun and Peter Schröder, Discrete shells, Eurographics/SIGGRAPH Symposium on Computer Animation (SCA 2003), 62-67, 2003, Section 2 (equations (1) to (3), the lumped masses, the damping force and the remark on Gaussian curvature), Section 3 (the curved rest shape, Newmark steps and automatic differentiation), Section 4 (beams, hats and paper) and the appendix (the tile height and the simplified energy)
  2. Miklós Bergou, Max Wardetzky, David Harmon, Denis Zorin and Eitan Grinspun, A quadratic bending model for inextensible surfaces, Eurographics Symposium on Geometry Processing (SGP 2006), 227-230, 2006, Section 2 (the edge based mean curvature vector is the linearization of the models of Grinspun et al. and others about a flat rest state)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/RG1SSM/text.yaml