RigidPart.shell_from_compas_mesh

classmethod RigidPart.shell_from_compas_mesh(mesh, section, name=None, **kwargs)[source]

Creates a Part object from a compas.datastructures.Mesh.

To each face of the mesh is assigned a compas_fea2.model.ShellElement object. Currently, the same section is applied to all the elements.

Parameters:
meshcompas.datastructures.Mesh

Mesh to convert to a Part.

sectioncompas_fea2.model.ShellSection

Shell section assigned to each face.

namestr, optional

Name of the new part. If None, a unique identifier is assigned automatically.

Returns:
compas_fea2.model.Part

The part.