rollers_on_openings

compas_tno.utilities.rollers_on_openings(form, xy_span=[[0.0, 10.0], [0.0, 10.0]], max_f=5.0, constraint_directions='all')[source]

Apply rollers to the rectangular boundaries of the pattern.

Parameters
  • form (FormDiagram) – ForceDiagram to constraint.

  • xy_span (list, optional) – The rectangular footprint to smooth, by default [[0, 10], [0, 10]]

  • max_f (float, optional) – The maximum force allowed in each roller, by default 5.0

  • constraint_directions (str) – Define the restriction in all directions or only x``or only ``y.

Returns

form (FormDiagram) – ForceDiagram with the rollers assigned.