6 from salome.geom
import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
8 gg = salome.ImportComponentGUI(
"GEOM")
11 box1 = geompy.MakeBox(0,0,0,100,50,100)
12 box2 = geompy.MakeBox(100,0,0,250,50,100)
15 compound = geompy.MakeCompound([box1, box2])
19 glue = geompy.MakeGlueFaces(compound, tolerance)
20 IsValid = geompy.CheckCompoundOfBlocks(glue)
22 raise RuntimeError,
"Invalid compound created"
24 print "\nCompound is valid"