MeshSolver.add_plane_constraint
- MeshSolver.add_plane_constraint(indices, weight=1.0)
Add a plane constraint to the solver.
A plane constraint tries to keep points co-planar. This directly adds the constraint to the C++ solver.
- Parameters:
- indiceslist
List of vertex indices to constrain.
- weightfloat, optional
Weight of the constraint. Higher values make the constraint stronger.
- Returns:
- int
ID of the added constraint.