apply_envelope_on_xy_from_base

compas_tno.utilities.apply_envelope_on_xy_from_base(form, form_base, c=0.5)[source]

Apply an envelope to the FormDiagram considering a given distance applied to a base form diagram.

Parameters
  • form (FormDiagram) – The input FormDiagram.

  • form_base ::FormDiagram – The base FormDiagram to consider.

  • c (float, optional) – The maximum allowed movement of the nodes in x or y, by default 0.5

Returns

None – The formdiagram is updated in place in the attributes