# - boolean minus (PyTree) - import Intersector.PyTree as XOR import Converter.PyTree as C M1 = C.convertFile2PyTree('boolNG_M1.tp') M1 = C.convertArray2NGon(M1) M2 = C.convertFile2PyTree('boolNG_M2.tp') M2 = C.convertArray2NGon(M2) tol = 1.e-12 x = XOR.booleanMinus(M1, M2, tol, preserve_right=1, solid_right=1) t = C.newPyTree(['Base',2]); t[2][1][2].append(x) C.convertPyTree2File(t, 'boolNGminus11.cgns') x = XOR.booleanMinus(M1, M2, tol, preserve_right=0, solid_right=1) t = C.newPyTree(['Base',2]); t[2][1][2].append(x) C.convertPyTree2File(t, 'boolNGminus01.cgns') x = XOR.booleanMinus(M1, M2, tol, preserve_right=1, solid_right=0) t = C.newPyTree(['Base',2]); t[2][1][2].append(x) C.convertPyTree2File(t, 'boolNGminus10.cgns') x = XOR.booleanMinus(M1, M2, tol, preserve_right=0, solid_right=0) t = C.newPyTree(['Base',2]); t[2][1][2].append(x) C.convertPyTree2File(t, 'boolNGminus00.cgns')