mymesh.converter.edges2unique#

mymesh.converter.edges2unique(Edges, return_idx=False, return_inv=False, return_counts=False)[source]#

Reduce set of mesh edges to contain only unique edges, i.e. there will only be one entry to indicate a edge shared between multiple elements.

Parameters:
  • Edges (list) – Nodal connectivity of mesh edges (as obtained by solid2edges).

  • return_idx (bool, optional) – If true, will return idx, the array of indices that relate the original list of edges to the list of unique edges (UEdges = Edges[idx]), by default False. See numpy.unique for additional details.

  • return_inv (bool, optional) – If true, will return inv, the array of indices that relate the unique list of edges to the list of original edges (Edges = UEdges[inv]), by default False See numpy.unique for additional details.

Returns:

  • UEdges (list) – Nodal connectivity of unique mesh edges.

  • idx (np.ndarray, optional) – The array of indices that relate the unique list of faces to the list of original edges.

  • inv (np.ndarray, optional) – The array of indices that relate the unique list of edges to the list of original edges.