RigidPart.from_compas_lines_discretized

classmethod RigidPart.from_compas_lines_discretized(lines, targetlength, element_cls, section, frame, **kwargs)[source]

Generate a discretized model from a list of compas.geometry.Line.

Parameters:
compas_linesdict

Dictionary providing for each compas line the targetlenght of the mesh, the element class, the section and frame. For example: {‘L1’: [targetlength1, BeamElement, section1, frame1], ‘L2’: [targetlength2, BeamElement, section2, frame2]…}

targetlengthfloat

Target element length for discretization (active length unit).

sectioncompas_fea2.model.Section1D

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

element_modelstr, optional

Implementation model for the element, by default ‘BeamElement’.

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

Local frame of the element or x-axis of the frame by default [0,1,0].

namestr, optional

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

Returns:
compas_fea2.model.Part

The part.