mymesh.utils.RelabelNodes#

mymesh.utils.RelabelNodes(NodeCoords, NodeConn, newIds, faces=None)[source]#

Relabel the nodes in the mesh according to the newIds list

Parameters:
  • NodeCoords (array_like) – List of nodal coordinates.

  • NodeConn (array_like) – Nodal connectivity list.

  • newIds (list) – list of node ids where the new index is located at the old index

  • faces (list, optional) – list of face elements, that will also be relabel, by default None

Returns:

  • NewCoords (array_like) – Relabeled of nodal coordinates.

  • NewConn (array_like) – Relabeled nodal connectivity list.