MeshSolver.constrain_edge_lengths

MeshSolver.constrain_edge_lengths(min_range=0.99, max_range=1.01, shrink_factor=0, exclude_edges=None, weight=10.0)

Add edge length constraints to all edges of a COMPAS mesh.

Parameters:
min_rangefloat, optional

Minimum allowed relative length. Default is 0.9.

max_rangefloat, optional

Maximum allowed relative length. Default is 1.1.

shrink_factorfloat, optional

Target shrinking factor (default=0). The target length will be (1.0 - shrink_factor) times the original length.

exclude_edgeslist, optional

List of edges to exclude from constraints. Default is None.

weightfloat, optional

Weight of the constraints. Default is 1.0.

Returns:
list

IDs of all added constraints.