check_envelope_constraints

compas_tno.utilities.check_envelope_constraints(form, tol=1e-06)

Check if the envelope constraints are respected and return a penalty > 0 if not.

Parameters:
formFormDiagram

The form diagram with the envelope as nodal attributes.

tolfloat, optional

Tolerance for verifying the constraints, by default 1e-6.

Returns:
penalty: float

The penalty computed as the sum square of the exceeding value at each node.