]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PR: basic example in doc
authorprascle <prascle>
Fri, 15 Mar 2013 14:20:15 +0000 (14:20 +0000)
committerprascle <prascle>
Fri, 15 Mar 2013 14:20:15 +0000 (14:20 +0000)
doc/salome/examples/GEOM_box.py [new file with mode: 0644]
doc/salome/examples/Makefile.am
src/GEOM_SWIG/GEOM_box.py [deleted file]
src/GEOM_SWIG/Makefile.am

diff --git a/doc/salome/examples/GEOM_box.py b/doc/salome/examples/GEOM_box.py
new file mode 100644 (file)
index 0000000..1d9864b
--- /dev/null
@@ -0,0 +1,16 @@
+# --- salome initialization
+import salome
+salome.salome_init()
+
+# --- geom Python interface
+import GEOM
+from salome.geom import geomBuilder
+geompy = geomBuilder.New(salome.myStudy)
+
+# --- Create a box and publish it into the salome study
+Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
+geompy.addToStudy( Box_1, 'Box_1' )
+
+# --- update the study object browser
+if salome.sg.hasDesktop():
+  salome.sg.updateObjBrowser(1)
index e7137ed7ef64234156709e1b1977299ab968b144..15ffae4e248569562afe351e7e4cb0041977a2e1 100644 (file)
@@ -74,6 +74,7 @@ GOOD_TESTS = \
        complex_objs_ex10.py \
        free_boundaries.py \
        free_faces.py \
+       GEOM_box.py \
        get_non_blocks.py \
        import_export.py \
        inertia.py \
diff --git a/src/GEOM_SWIG/GEOM_box.py b/src/GEOM_SWIG/GEOM_box.py
deleted file mode 100644 (file)
index 1d9864b..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# --- salome initialization
-import salome
-salome.salome_init()
-
-# --- geom Python interface
-import GEOM
-from salome.geom import geomBuilder
-geompy = geomBuilder.New(salome.myStudy)
-
-# --- Create a box and publish it into the salome study
-Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
-geompy.addToStudy( Box_1, 'Box_1' )
-
-# --- update the study object browser
-if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(1)
index 16d568ba437a8305b86b294d10938adc89f57145..0099083fb538c4b9bda72335b79a5dbbb8f630d8 100644 (file)
@@ -35,7 +35,6 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
 dist_salomescript_DATA =               \
        geompy.py                       \
        GEOM_Spanner.py                 \
-       GEOM_box.py                     \
        GEOM_blocks.py                  \
        GEOM_example.py                 \
        GEOM_example2.py                \
@@ -71,10 +70,7 @@ dist_salomescript_DATA =             \
 mypkgpythondir = $(salomepythondir)/salome/geom
 mypkgpython_PYTHON = \
        geomBuilder.py                  \
-       gsketcher.py                    
-#      geompyDC.py                     
-#      batchmode_geompy.py             
-
+       gsketcher.py
 
 sharedpkgpython_PYTHON =               \
        GEOM_shared_modules.py