m3sh.hds.Mesh.

copy#

Mesh.copy()#

Return mesh copy.

Duplicate combinatorics, vertex coordinates, and data blocks of a mesh.

Returns:
Mesh

Copy of the mesh.

Notes

Data blocks are copied using the data object’s copy() method. For data blocks of type list and dict this results in shallow copies and deep copies for data of type ndarray.

User defined vertex, face, and halfedge instance attributes are copied using Python’s built-in copy() function.