Salome HOME
Update from BR_V5_DEV 13Feb2009
[modules/geom.git] / doc / salome / gui / GEOM / input / tui_boolean_operations.doc
index f88047f489d1a5664cf19d0c5f4211fa3628b798..60563757c190d2880d09ba7d52a2e7c423ed7107 100644 (file)
@@ -24,20 +24,24 @@ cylinder = geompy.MakeCylinder(p1, v, radius1, height)
 sphere = geompy.MakeSphereR(40)
 
 # fuse
-fuse = geompy.MakeFuse(cylinder, sphere)
+fuse1 = geompy.MakeFuse(cylinder, sphere)
+fuse2 = geompy.MakeBoolean(cylinder, sphere, 3)
 
 # add objects in the study
 id_cylinder = geompy.addToStudy(cylinder, "Cylinder")
 id_sphere = geompy.addToStudy(sphere, "Sphere")
-id_fuse = geompy.addToStudy(fuse, "Fuse")
+id_fuse1 = geompy.addToStudy(fuse1, "Fuse_1")
+id_fuse2 = geompy.addToStudy(fuse2, "Fuse_2")
 
 # display results
 gg.createAndDisplayGO(id_cylinder)
 gg.setDisplayMode(id_cylinder,1)
 gg.createAndDisplayGO(id_sphere)
 gg.setDisplayMode(id_sphere,1)
-gg.createAndDisplayGO(id_fuse)
-gg.setDisplayMode(id_fuse,1)
+gg.createAndDisplayGO(id_fuse1)
+gg.setDisplayMode(id_fuse1,1)
+gg.createAndDisplayGO(id_fuse2)
+gg.setDisplayMode(id_fuse2,1)
 \endcode
 
 \anchor tui_common
@@ -104,7 +108,7 @@ gg.createAndDisplayGO(id_cut)
 gg.setDisplayMode(id_cut,1) 
 \endcode
 
-\anchor tui_section 
+\anchor tui_section
 <br><h2>Section</h2>
 
 \code
@@ -136,4 +140,4 @@ gg.createAndDisplayGO(id_section)
 gg.setDisplayMode(id_section,1) 
 \endcode
 
-*/
\ No newline at end of file
+*/