mymesh.mesh.mesh.addEdges#
- mesh.addEdges(NewEdges, EdgeSet=None)[source]#
Add new edges to the mesh. These edges will be appended to the end of the list of edges (
mesh.Edges()). This should be done very carefully and only used for advanced manipulation of the mesh, as added edges may not make sense with the rest of the mesh. If the mesh has been changed and updated edges are desired, it’s safest to usemesh.reset()then recompute the edges with (mesh.Edges()). Note that if Edges hasn’t been referenced before (mesh._Edges==[]) they will be obtained in this function, so if the new edges are already part of the mesh, this may produce redundant edges.- Parameters:
NewEdges (array_like) – Node connectivities of the new edge(s). This can either be a single edge (shape=(1,m)) or multiple edges (shape=(n,m) or list of lists with length n for mixed element type edges). If a single edge, it must be a 2D array or list of a single list (i.e. [[a,b,c]]).
EdgeSet (str, optional) – If provided, name of a edge set that the new edges will be added to in mesh.EdgeSets[<EdgeSet>], by default None.