DeformablePart.from_compas_line
- classmethod DeformablePart.from_compas_line(line, element_model='BeamElement', section=None, name=None, **kwargs)
Generate a part from a class:compas.geometry.Line.
- Parameters:
line (class:compas.geometry.Line) – The line
element_model (str, optional) – Implementation model for the element, by default ‘BeamElement’
section (
compas_fea2.model.BeamSection
, optional) – _description_, by default Nonename (str, optional) – The name of the part, by default None (one is automatically generated)
- Returns:
class (compas_fea2.model.Part) – The part.