Part.add_node

Part.add_node(node)[source]

Add a node to the part.

Parameters:
nodecompas_fea2.model.Node

The node.

Returns:
compas_fea2.model.Node

The identifier of the node in the part.

Raises:
TypeError

If the node is not a node.

Notes

By adding a Node to the part, it gets registered to the part.

Examples

>>> part = Part()
>>> node = Node(xyz=(1.0, 2.0, 3.0))
>>> part.add_node(node)