RigidPart.from_compas_lines

classmethod RigidPart.from_compas_lines(lines, element_cls=<class 'compas_fea2.model.elements.BeamElement'>, frame=[0, 1, 0], section=None, name=None, **kwargs)[source]

Generate a part from a list of compas.geometry.Line.

Parameters:
lineslist[compas.geometry.Line]

The lines to be converted.

element_clstype, optional

Implementation model for the element, by default BeamElement.

framecompas.geometry.Line or list[float], optional

The x-axis direction, by default [0,1,0].

sectioncompas_fea2.model.Section1D, optional

The section to be assigned to the elements, by default None.

namestr, optional

The name of the part, by default None (one is automatically generated).

Returns:
compas_fea2.model.Part

The part.