MeshSolver.add_closeness_constraint
- MeshSolver.add_closeness_constraint(index, weight=100000.0)
Add a closeness constraint to the solver.
A closeness constraint tries to keep vertices close to their original positions. This directly adds the constraint to the C++ solver.
- Parameters:
- indexint
Index of the vertex to constrain.
- weightfloat, optional
Weight of the constraint. Default is 1e5.
- Returns:
- int
ID of the added constraint.