折纸模拟器
Origami Simulator,Amanda Ghassaei,2017 年

正在布展…
它是怎么做的
- 第 1 步解析 SVG 折痕图(山折/谷折)为三角网格
- 第 2 步顶点位置、速度存于浮点纹理,在片元着色器中做显式数值积分
- 第 3 步约束包括边长、折痕目标角度与面平整度
- 第 4 步按每个三角形的应变给网格着色
复刻配方
一段技术配方,可以直接交给 AI 编程助手,也可以自己照着写。想指定技术栈、位置和性能预算,就把它加入实现方案。
Parse an SVG crease pattern into a triangulated mesh with edges tagged as mountain, valley or flat. Store vertex positions and velocities in floating-point textures and run a GPGPU loop that applies axial spring forces for edge lengths, angular spring forces that drive each crease toward its target dihedral angle times a global fold percentage, and flat-face constraints. Integrate with a small time step several times per frame and read positions in the vertex shader of the display mesh. Color each face by its deviation from rest length to visualise strain.


