MeshSolver.constrain_face_planarity

MeshSolver.constrain_face_planarity(type='plane', weight=100000.0)

Add plane constraints to all faces of a COMPAS mesh.

Parameters:
typestr, optional

“plane” or “circle”. Default is “plane”.

weightfloat, optional

Weight of the constraints. Default is 1e5.

Returns:
list[int]

IDs of all added constraints.