1 # Check Compound of Blocks
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])
17 # glue the faces of the compound
19 glue = geompy.MakeGlueFaces(compound, tolerance)
20 IsValid = geompy.CheckCompoundOfBlocks(glue)
22 raise RuntimeError, "Invalid compound created"
24 print "\nCompound is valid"