Remove entities of a list of volumes python
Hello,
I'm trying to remove entities in even positions from a list as follows (the list can be very long):
new_fusion = [(3, 200002), (3, 200004), (3, 200006), (3, 200008), (3, 2000010), (3, 2000012)]
g=0
while g in range(len(new_fusion)):
print("POSITION: ", new_fusion[g])
gmsh.model.occ.remove(new_fusion[g])
g+=2
I get the Error: Exception: Invalid data for input vector of pairs
I can acces the position using new_fusion[g] but can't use the command remove. How can I do this? I believe it's a format problem that I have. Thanks in advance!