Skip to main content

Module gpu_cloth

Module gpu_cloth 

Source
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§

BendingConstraint
A bending constraint connecting four vertices that share a common edge.
ClothEdge
A structural spring edge connecting two cloth vertices.
ClothMesh
The cloth mesh consisting of vertices and spring edges.
ClothVertex
A single vertex (particle) in the cloth mesh.
GpuClothSolver
XPBD-style cloth solver (CPU mock implementation).

Enums§

ClothCollider
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.