MeshSolver.add_regular_polygon_constraint
- MeshSolver.add_regular_polygon_constraint(indices, weight=1.0)
Add constraint to make vertices form a regular polygon.
This is a high-level method that automatically: 1. Creates a regular polygon template in the face’s plane 2. Creates a similarity constraint to match the template
- Parameters:
- indiceslist
List of vertex indices of the polygon face.
- weightfloat, optional
Weight of the constraint, by default 1.0
- Returns:
- bool
True if the constraint was added successfully.