Hello,
I have a mesh named my_initial_mesh with, let say for the example 6 cells named [0 1 2 3 4 5]
I would like to delete 2 cells and plot the results of both at the same time
so i do :
my_troncated_mesh=my_mesh
my_troncated_mesh.DeleteCell(2)
my_troncated_mesh.DeleteCell(3)
my_troncated_mesh.RemoveDeletedCells()
and then, when i plot my_troncated_mesh i have exactly what i want, both cell 2 and cell 3 have been deleted
my problem : when i plot or print my_initial_mesh, those 2 cells are also deleted on that mesh… I would like to have my_initial_mesh with the 6 cells and my_troncated_mesh with 4 cells.
But those polydata seems liked and i do not understand why. And i think i concidare my mesh as kind of array. if write
a=[1, 2 ,3 ,4 ,5]
b=a
b.pop(2)
if I print a, i have “[1, 2 ,3 ,4 ,5]” and if i print b i have “[1, 2 ,4 ,5]”,
a and b are not linked
Thanks in advance for any help or any tips