Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Python Interface geomBuilder.py


Please, see structured documentation for geomBuilder.py, where all package functionality is separated in groups by purpose.


Also you can find any function in the linear documentation for geomBuilder.py


With SALOME 7.2, the Python interface for Geometry has been slightly modified to offer new functionality,
You may have to modify your scripts generated with SALOME 6 or older versions.
Please see Modifying Geometry Python scripts from SALOME 6 and before



GEOM Python script example

1 # --- salome initialization
2 import salome
3 salome.salome_init()
4 
5 # --- geom Python interface
6 import GEOM
7 from salome.geom import geomBuilder
8 geompy = geomBuilder.New(salome.myStudy)
9 
10 # --- Create a box and publish it into the salome study
11 Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
12 geompy.addToStudy( Box_1, 'Box_1' )
13 
14 # --- update the study object browser
15 if salome.sg.hasDesktop():
16  salome.sg.updateObjBrowser(True)

Download this script


By the links below you can find sample scripts for all operations provided by Geometry module.