Expand description
GPU-accelerated cloth simulation (CPU mock implementation).
Provides a complete cloth simulation pipeline including spring–damper edges, bending constraints, XPBD position solving, and collision response against analytic primitives (sphere, plane).
Structs§
- Bending
Constraint - A bending constraint connecting four vertices that share a common edge.
- Cloth
Edge - A structural spring edge connecting two cloth vertices.
- Cloth
Mesh - The cloth mesh consisting of vertices and spring edges.
- Cloth
Vertex - A single vertex (particle) in the cloth mesh.
- GpuCloth
Solver - XPBD-style cloth solver (CPU mock implementation).
Enums§
- Cloth
Collider - An analytic collision primitive for cloth–object interaction.
Functions§
- dihedral_
angle - Compute the dihedral angle (in radians) between two triangles sharing edge
(v1, v2). - triangle_
area - Compute the area of a triangle defined by three 3-D vertices.