compute_form_initial_lengths

compas_tno.utilities.compute_form_initial_lengths(form)[source]

Compute the length of each edge based on the projection of the pattern onto the middle surface. Note: the middle surface is obtained based on the “target” attributes of the form diagram that should be set before invoking this method.

Parameters

form (::FormDiagram::) – Form diagram to compute the lengths.

Returns

lengths (array (m x 1)) – A vector (m x 1) containing the calculated edge lengths.