Python package smesh defines several classes, destined for easy and clear mesh creation and edition.
Documentation for smesh package is available in two forms:
The structured documentation for smesh package, where all methods and classes are grouped by their functionality, like it is done in the GUI documentation and the linear documentation for smesh package grouped only by classes, declared in the smesh.py file.
The main page of the linear documentation for smesh package contains a list of data structures and a list of functions, provided by the package smesh.py. The first item in the list of data structures (class smesh) also represents documentation for the methods of the package smesh.py itself.
The package smesh.py provides an interface to create and handle meshes. Use it to create an empty mesh or to import it from the data file.
Once a mesh has been created, it is possible to manage it via its own methods, described at class Mesh documentation (it is also accessible by the second item "class Mesh" in the list of data structures).
Class Mesh allows assigning algorithms to a mesh. Please note, that some algorithms, included in the standard SALOME distribution are always available:
To add hypotheses, use the interfaces, provided by the assigned algorithms.
Below you can see an example of usage of the package smesh for 3d mesh generation.
Examples of Python scripts for all Mesh operations are available by the following links: