Salome HOME
PR: synchro V6_main tag mergeto_V7_main_11Feb13
[modules/geom.git] / doc / salome / gui / GEOM / input / tui_check_compound_of_blocks.doc
index 1bd2fe9bb813d6fbfc9897f0bae911f4b99b6066..eeb9d92a1e8afd5004144dbb9c515b21b21616fd 100644 (file)
@@ -1,27 +1,7 @@
 /*!
 
 \page tui_check_compound_of_blocks_page Check Compound of Blocks
-
-\code
-import geompy
-import salome
-gg = salome.ImportComponentGUI("GEOM")
-
-# create boxes
-box1 = geompy.MakeBox(0,0,0,100,50,100)
-box2 = geompy.MakeBox(100,0,0,250,50,100)
-
-# make a compound
-compound = geompy.MakeCompound([box1, box2])
-
-# glue the faces of the compound
-tolerance = 1e-5
-glue = geompy.MakeGlueFaces(compound, tolerance)
-IsValid = geompy.CheckCompoundOfBlocks(glue)
-if IsValid == 0:
-    raise RuntimeError, "Invalid compound created"
-else:
-    print "\nCompound is valid"
-\endcode
+\include check_compound_of_blocks.py
+<a href="../../examples/GEOM/check_compound_of_blocks.py">Download this script</a>
 
 */