fedoo.Mesh.add_nodes
- Mesh.add_nodes(*args) ndarray[int]
Add some nodes to the node list. The new nodes are not liked to any element.
The method can be used in several ways:
- mesh.add_nodes()
Add one node at the center of the bounding box
- mesh.add_nodes(nb_nodes)
Add several nodes at the center of the bounding box
- mesh.add_nodes(nodes)
Add some nodes with the specified coordinates
- mesh.add_nodes(nodes, nb_nodes)
Add several nodes at the same coordinates given in nodes
- Parameters:
nb_nodes (int) – Number of new nodes If the nodes coorinates (“nodes”) is not specified, new nodes are created at the center of the bounding box.
nodes (np.ndarray) – The coordinates of the new nodes. If nb_nodes is not specified, the number of nodes is deduced from the number of line. If only one node position is given (ie len(nodes) == ndim) and nb_nodes is given, several nodes are created at the same position.