# - blankCellsTri (pyTree) - 'NODE IN' import Converter.PyTree as C import Connector.PyTree as X import Generator.PyTree as G import Post.PyTree as P # Tet mask m = G.cart((0.,0.,0.), (0.1,0.1,0.2), (10,10,10)) m = P.exteriorFaces(m) # Mesh to blank a = G.cart((-5.,-5.,-5.), (0.5,0.5,0.5), (100,100,100)) t = C.newPyTree(['Cart',a]) C._initVars(t, 'centers:cellN', 1.) masks = [[m]] # Matrice de masquage (arbre d'assemblage) import numpy BM = numpy.array([[1]]) t = X.blankCellsTri(t, masks, BM, blankingType='node_in', tol=1.e-12) C.convertPyTree2File(t, 'out.cgns')