Version: 9.12.0
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

# --- salome initialization
import salome
salome.salome_init_without_session()
# --- geom Python interface
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()
# --- 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()
def New(instance=None)

Download this script


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