P39
Shape Matching
✅ Shape Matching 跳过了。
P40
Shape Matching
The basic idea is to define a quadratic energy based on the rotated reference element. To do so, we split transformation into deformation + rotation.
P41
Shape Matching
The basic idea is to define a quadratic energy based on the rotated reference element. To do so, we split transformation into deformation + rotation.
P42
Shape Matching
We can then define the quadratic energy as:
E(x)=12||F−R||2
(R is the rotation inside of F. This energy tries to penalize the existence of S).
Assuming that R is constant, this E(x) becomes a quadratic function. We can then derive the force and the Hessian.
E(x)=12||[x1−x0x2−x0][r1−r0r2−r0]−1−R||2
P43
A Summary For the Day
-
A mass-spring system
- Planar springs against stretching/compression - replaceable by co-rotational model
- Bending springs - replaceable by dihedral or quadratic bending
- Regardless of the models, as long as we have E(x), we can calculate force f(x)=−∇E(x) and Hessian H(x)=∂E2(x)/∂x2. Forces and Hessians are stackable.
-
Two integration approaches
- Explicit integration, just need force. Instability
- Implicit integration, as a nonlinear optimization problem
- One way is to use Newton’s method, which solves a linear system in every iteration:
(1∆t2M+H(x(k)))∆x=−1∆t2M(x(k)−x[0]−∆tv[0])+f(x(k))
- There are a variety of linear solvers (beyond the scope of this class).
- Some simulators choose to solve only one Newton iteration, i.e., one linear system per time step.
本文出自CaterpillarStudyGroup,转载请注明出处。
https://caterpillarstudygroup.github.io/GAMES103_mdbook/