Version: 9.12.0
libSMESH_Swig Namespace Reference

Python API for SMESH GUI. More...

Detailed Description

Python API for SMESH GUI.

See SMESH_Swig class for SMESH GUI Python API.

Note about publishing of mesh objects in the study

Mesh objects are automatically published in the study. It is not needed to specify a target SALOMEDS object (SObject) or even name (SMESH engine will will default name if it is not specified). So, normally functions of SMESH GUI Python API like AddNewMesh AddNewHypothesis AddNewAlgorithms etc. may only be needed to be called in case if mesh objects are created when no active study is set to SMESH component. In this case, mentioned functions can be used to forcibly publish existing objects in the currently active study.

Note that if there are no open study, these methods will do nothing.

Note about selection

In SALOME, selection is automatically synchronlized between all GUI elements (like Object browser, view windows, etc). This means that any changes to selection applied with select() methods, will automatically apply to all view windows, taking into account selection modes switched in each particular view window (e.g. if you select edges, while in some view window Face selection mode is switched on, selection will not be immediately applied to this view window.