check_envelope_constraints

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

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

Parameters
  • form (FormDiagram) – The form diagram with the envelope as nodal attributes.

  • tol (float, 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.