]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0023366: [CEA 1972] Replacing int by bool in a python script
authorskv <skv@opencascade.com>
Fri, 14 Oct 2016 11:24:01 +0000 (14:24 +0300)
committerskv <skv@opencascade.com>
Fri, 14 Oct 2016 11:24:01 +0000 (14:24 +0300)
doc/salome/examples/viewing_geom_objs_ex01.py
src/GEOM_SWIG/GEOM_example3.py

index b5935764b0985b5d43aed3f49f81a5adc365945a..8a6d13e9351aae1b58ea7cd8bd20da663b101521 100644 (file)
@@ -15,6 +15,6 @@ fuse_id = geompy.addToStudy(fuse,"Fuse")
 gg = salome.ImportComponentGUI("GEOM")
 gg.createAndDisplayGO(fuse_id)
 gg.setDisplayMode(fuse_id,1)
-gg.setVectorsMode(fuse_id, 1)
-gg.setVerticesMode(fuse_id, 1)
+gg.setVectorsMode(fuse_id, True)
+gg.setVerticesMode(fuse_id, True)
 gg.setNameMode(fuse_id, 1)
index 147d000108f37bd4c1a5122f6b28c5c96325f108..a44cb7d37f6c5b87d2460567a6967b18b38f0a1d 100644 (file)
@@ -112,8 +112,8 @@ if not isinstance(gg, type(salome_ComponentGUI)):
     
     gg.setDisplayMode(id_torus1,1)
     gg.setDisplayMode(id_torus2,1)
-    gg.setVectorsMode(id_acyl,1,1)
-    gg.setVerticesMode(id_acyl,1,1)
+    gg.setVectorsMode(id_acyl,True)
+    gg.setVerticesMode(id_acyl,True)
     #gg.setDisplayMode(id_cage,1)
     
     gg.setColor(id_torus1,0,0,255)