1 # Check Compound of Blocks
5 gg = salome.ImportComponentGUI("GEOM")
8 box1 = geompy.MakeBox(0,0,0,100,50,100)
9 box2 = geompy.MakeBox(100,0,0,250,50,100)
12 compound = geompy.MakeCompound([box1, box2])
14 # glue the faces of the compound
16 glue = geompy.MakeGlueFaces(compound, tolerance)
17 IsValid = geompy.CheckCompoundOfBlocks(glue)
19 raise RuntimeError, "Invalid compound created"
21 print "\nCompound is valid"