assign_cracks

compas_tno.utilities.assign_cracks(form, dx=[[0.5, 0.55]], dy=[[-0.1, 0.1]], type=['top'])

Assign cracks on a form diagram to the nodes desired

Parameters:
formFormDiagram

ForceDiagram to constraint

dxlist, optional

List of the range on the x-coordinates of the nodes to be constrained, by default [[0.50, 0.55]]

dylist, optional

List of the range on the y-coordinates of the nodes to be constrained, by default [[-0.1, 0.1]]

typelist, optional

List with the type of constraint to applye to the vertices (top or bottom), by default [‘top’]

Returns:
formFormDiagram

ForceDiagram with the constraints in attribute ‘cracks’.