ndiffusion.copy_mesh

ndiffusion.copy_mesh(mesh)[source]

Return an independent copy of mesh, including any attached names.

Copying every field costs roughly 20x what rewriting material_id alone does, which is why assign_materials() paints in place by default.