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.
- frame
compas.geometry.Lineor list[float], optional The x-axis direction, by default [0,1,0].
- section
compas_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).
- lineslist[
- Returns:
compas_fea2.model.PartThe part.