MeshSolver.add_bending_constraint

MeshSolver.add_bending_constraint(indices, weight=1.0, min_range=1.0, max_range=1.0)

Add a bending constraint between two neighboring triangles.

Parameters:
indiceslist

List of 4 vertex indices in the specific order [id2, id0, id1, id3].

weightfloat, optional

Weight of the constraint. Default is 1.0.

min_rangefloat, optional

Minimum bend factor relative to initial angle. Default is 1.0.

max_rangefloat, optional

Maximum bend factor relative to initial angle. Default is 1.0.

Returns:
int

ID of the added constraint.