6 from salome.geom
import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
10 box = geompy.MakeBoxDXDYDZ(100, 100, 100)
11 cyl = geompy.MakeCylinderRH(100, 200)
13 geompy.addToStudy(box,
'box')
14 geompy.addToStudy(cyl,
'cyl')
17 compound = geompy.MakeCompound([box, cyl])
18 geompy.addToStudy(compound,
'compound')
21 pair = geompy.GetNonBlocks(compound)
23 if pair[0]
is not None:
24 geompy.addToStudyInFather(compound, pair[0],
"GrNonBlocks")
27 if pair[1]
is not None:
28 geompy.addToStudyInFather(compound, pair[1],
"GrNonQuads")