gattia / pymskt

Python Musculoskeletal Tools
11 stars 4 forks source link

When creating new Mesh, copy the base mesh. #22

Open gattia opened 2 years ago

gattia commented 2 years ago

If we dont make a copy of the base mesh, then the new Mesh object will point to the same underlying vtkpolydata and we might have issues.

https://github.com/gattia/pymskt/blob/655730cb3ed29e6f74d09254ebbeb6d012603248/pymskt/mesh/meshes.py#L105