move_pattern_to_origin

compas_tno.utilities.move_pattern_to_origin(mesh, corners=[[0.0, 0.0], [10.0, 0.0], [10.0, 10.0], [0.0, 10.0]], fix_corners=True)

Modify the form diagram to coincide the lower corner of its bounding box with the corners provided. Note: translation and scaling are involved.

Parameters:
meshMesh

The form diagram adopted

corners[pts]

A list with four points for the corner

fix_cornersbool, optional

Whether or not the corners provided should be considered fixed

Returns:
None

Form is updated in place