TriangleAreaConstraint
class TriangleAreaConstraint(val body: Body, var compliance: Double = 0.0, var iterations: Int = 1) : Constraint(source)
Represents a constraint that maintains the area of triangles within a physical body.
The TriangleAreaConstraint ensures that the signed areas of triangles in a Body remain consistent with their rest (initial) areas during simulations. This is achieved by applying correction steps to the positions of the associated nodes over multiple iterations. It is particularly useful in preserving the structural properties of deformable bodies.