Corotational FEM cloth
Corotational FEM cloth using triangle membrane elements[1], with the same implicit Euler + CG loop as the mass-spring demo.
50×50 grid, two corners pinned, 4802 triangles. , , thickness . Edit the scene above -- changes auto-apply. Click and drag vertices to interact.
Each triangle gets a deformation gradient , then SVD extracts the rotation ( with reflection fix) for the energy:
The Hessian uses the Gauss-Newton approximation (drops ), which stays SPD so CG would converge. Kugelstadt 2018[2] recovers those terms via operator splitting for better convergence on stiff materials.
Color shows per-triangle area strain (green = rest, red = stretched, blue = compressed). Compared to mass-spring, shear behavior comes from directly -- no diagonal springs needed, and refining the mesh doesn't change effective stiffness.