Assembly.add_block_from_mesh
- Assembly.add_block_from_mesh(mesh, node=None, attr_dict=None, **kwattr)[source]
Add a block to the assembly from a normal mesh.
- Parameters
mesh (
compas.datastructures.Mesh
) – The mesh to add.node (hashable, optional) – The identifier of the corresponding node in the connectivity graph. If no value is provided, the identifier will be generated automatically by the graph.
attr_dict (dict, optional) – A dictionary of block attributes.
**kwatr (dict, optional) – Additional attributes in the form of named function parameters.
- Returns
hashable – The identifier of the node in the graph corresponding to the block.