Modeladvanced
Quadratic bending model
Also called Bergou-Wardetzky bending.
Under isometric deformation of a flat rest mesh, the bending energy is a quadratic form in the positions with a constant matrix of cotangent weights. Otherwise it is an approximation.
The quadratic bending model, also called the isometric bending model, is a bending energy for nearly inextensible triangle meshes such as cloth. Its hypotheses are that the mesh deforms isometrically, so that every edge keeps its rest length, and that the rest shape is flat. Under these hypotheses the bending energy is for a constant matrix of cotangent weights, so the forces are linear in the positions and the Hessian never changes. A real simulation only keeps the edge lengths near their rest values through stiff membrane forces, so in practice the model is an approximation. It differs from discrete shells, which is nonlinear in the positions and allows a curved rest shape, and from the vertex based cotangent Laplacian, whose linear elements it replaces by edge based elements.
The machine
The smooth model. For a surface with mean curvature , Section 1 of the paper takes the bending energy
where is the embedding of the surface and is its Laplace-Beltrami operator, so that is the mean curvature normal. depends only on the metric of , and an isometric deformation does not change the metric. So for isometric deformations is a fixed linear operator and is quadratic in . The paper calls this the central observation.
The discrete model. The positions are (m). A mesh deforms isometrically if all its edge lengths stay the same. Section 2 asks for an energy that is (i) quadratic in under isometric deformation, (ii) invariant under rigid motions and (iii) invariant under a uniform scaling, and writes it as
where depends only on the rest mesh, is a discrete Laplacian with and is a symmetric positive definite mass matrix that scales with the square of the length. acts on each of the three coordinates in the same way. For cloth the paper uses the nonconforming Crouzeix-Raviart elements, whose degrees of freedom sit on the edges, and gives as a sum of local matrices, one per interior edge.
Label the stencil of the interior edge as follows. Its triangles are and with rest areas and . The other edges are , , and , and is the cotangent of the rest angle between and . So and are at , and and are at . Then
and the local energy is . A scratch check of this page confirmed the labelling: with it, applied to the four points of a flat stencil gives .
The elastic bending force is . The paper adds Rayleigh damping , whose bending part is also precomputed. The energy is multiplied by a bending stiffness as in any bending model, and the paper found no need to change the material parameters when it switched from a nonlinear hinge model to this one.
ASSEMBLE-BENDING-MATRIX(rest mesh)- 1
Q <- the zero n by n sparse matrix - 2
for each interior edge e0 = (x0, x1) with triangles (x0, x1, x2) and (x0, x1, x3): - 3
c01, c02 <- cot of the rest angles at x0 in the two triangles - 4
c03, c04 <- cot of the rest angles at x1 in the two triangles - 5
K <- (c03 + c04, c01 + c02, -c01 - c03, -c02 - c04) - 6
add 3 / (A0 + A1) K^T K to the rows and columns of x0, x1, x2, x3 in Q - 7
return Q BENDING-FORCE(Q, x)- 8
return -Q x, for each coordinate separately
The standing assumptions are: the deformation is isometric, which an in-plane model with high stiffness keeps close to true (the paper treats the in-plane model as a penalty that enforces isometry); the rest shape is flat; and no rest triangle is degenerate, so the cotangents are finite. Boundary edges have no term.
What it counts
The model gives the bending energy (J), the bending forces (N) and the constant bending Hessian . The assembly visits each interior edge once and costs time, once per simulation. is nonzero only if the vertices and lie in a common stencil, so has at most nonzero entries, and one force evaluation is a sparse product in time. A nonlinear hinge model also costs per evaluation, with a larger constant, and must rebuild its Hessian at every Newton step.
The paper measured the gain (measured, hardware not given in the text): over two solvers, two scenes (cloth draped on a sphere and a flag in wind), regular and irregular meshes, and 400 to 25600 vertices, the simulation was typically two to three times faster than with a nonlinear hinge, and the bending force computation seven to eleven times faster. The overall gain depends on the share of the bending forces in the total cost.
Relation to other models
- Discrete shells sums over the edges, with the bend angle . It is nonlinear in , allows a curved rest shape, and needs a new Hessian at every step. For a flat rest shape and isometric motion, result 1 below shows that the quadratic model is the same energy with replaced by , times . The paper states that its edge based is the linearization about the flat rest state of the models of Bridson et al. (2003), Cohen-Steiner and Morvan, and Grinspun et al.
- Cotangent Laplacian. The paper names the usual linear (Lagrange) elements as one possible basis, which gives the vertex based cotangent Laplacian. It prefers the edge based Crouzeix-Raviart elements for cloth, because there the bending happens about the edges.
- Baraff-Witkin cloth and bending springs of a mass-spring system give bending forces that are nonlinear in . The paper notes that some models are linearized at every step instead, and that this loses the invariance under rigid motions; the quadratic model keeps it (result 2).
- Fast mass-spring simulation and implicit fairing also gain speed from a constant matrix that is set up once. Here the matrix is exact only under the hypotheses above.
- Willmore flow. The paper also uses the model for the fairing of surfaces, where isometry is a poor assumption; it reports that the model is still effective inside inexact Newton methods. The details are in a longer report by the same authors, which this page has not checked.
Known results in the model
Let for the rest heights of the two triangles over , as on the discrete shells page, and let be the bend angle of in .
- The exact energy under the hypotheses (proved). If the rest mesh is flat and is an isometric deformation of it, then
Proof. Take a triangle with angles at and at , and put it in its own plane with , and , . Then , , and , where is the unit vector in the plane of the triangle that is normal to the edge and points to . The entries of are the sum of this expression for and for , so . An isometric deformation keeps all the angles of the triangles, so the cotangents of the deformed mesh are the rest cotangents and the formula holds for . The angle between and is the bend angle , so . With and , the local energy is . So under the hypotheses the model is the discrete shells energy with a flat rest shape, with replaced by and a factor . A scratch check with a hinge bend of rad on random stencils, after a random rigid motion, matched the formula to 15 digits.
- Rigid motions and momentum (proved). The entries of sum to , so and a translation does not change ; a rotation keeps every . The forces have the sum , and the total torque is because is symmetric. So the bending forces keep the linear and the angular momentum. Section 2 of the paper states that condition (ii) holds if and only if , with the proof in the longer report; this page proves only the direction it uses.
- Positive semidefinite, with the affine maps in the kernel (proved). is a sum of matrices with , so . For a flat rest stencil, the proof of result 1 gives , and for any linear map and shift . So every affine image of the flat rest mesh has zero bending energy, including in-plane stretch and shear. A scratch check found an energy below for a random affine map.
- In-plane changes that are not affine give energy (proved). Move only of a flat stencil by in the plane. Then and , although nothing bends. This is the cost of the isometry hypothesis: the model relies on the in-plane forces to keep such changes small.
- A curved rest shape is not an equilibrium (proved). If the rest mesh has an edge with a bend angle and is built from its rest angles and areas, then by the proof of result 1 that edge gives , so and the force is not zero, so the rest shape is not at rest in the model. So the flat rest shape is a real hypothesis; the paper says that the extension to curved rest shapes and to anisotropy is in its longer report.
- Scale (proved). If the rest mesh is scaled by , the cotangents and do not change and scales by , so scales by , which is condition (iii). The energy of the scaled positions is then the same as that of .
- Large bends (proved). By result 1 the energy per edge is at most , reached when the two triangles fold onto each other (). At that angle the ratio is , so the model is softer than a hinge energy in for sharp folds. It has no jump at , because it is a polynomial in .
- Same look, less time (measured). In the paper, cloth draped on a sphere and a flag in wind looked qualitatively the same with this model and with a nonlinear hinge model, with the same material parameters, and the runs were faster as given under "What it counts". The test framework used an implicit solver in the manner of Baraff and Witkin and explicit Euler, linear finite elements for the in-plane forces, k-DOP trees for collision detection and the collision response of Bridson et al. (2002).
References
- 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 1 (the smooth energy and the central observation), Section 2 (the three conditions, Q = L^T M^-1 L, Crouzeix-Raviart elements and the local matrix of an interior edge), Section 3 (forces, Rayleigh damping, the test setup and the measured speedups) and Table 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, equation (2) (the hinge energy with the tile height, used here for comparison)
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag CKV49R Edit this page History Report an error Markdown