In SALOME 7.2, the Python interface for Geometry has been slightly modified to offer new functionality:
Scripts generated for SALOME 6 and older versions must be adapted to work in SALOME 7.2 with full functionality.
The compatibility mode allows old scripts to work in almost all cases, but with a warning.
Salome initialisation must always be done as shown below
(salome_init() can be invoked safely several times):
Geometry initialisation is modified.
the old mode:
the new mode:
Of course, from geompy import * is no more possible.
You have to explicitely write geompy.some_method().
Some variables have been transferred from the namespace geompy.GEOM to the namespace GEOM.
All occurrences of geompy.GEOM. can be replaced by GEOM..
For instance:
is replaced by: