DeformablePart.frame_from_compas_mesh
- classmethod DeformablePart.frame_from_compas_mesh(mesh, section, name=None, **kwargs)[source]
Creates a DeformablePart object from a a
compas.datastructures.Mesh
. To each edge of the mesh is assigned acompas_fea2.model.BeamElement
. Currently, the same section is applied to all the elements.- Parameters:
mesh (
compas.datastructures.Mesh
) – Mesh to convert to a DeformablePart.section (
compas_fea2.model.BeamSection
) – Section to assign to the frame elements.name (str, optional) – name of the new part.