General presentation of the GEOM python packageΒΆ

The GEOM python package essentially contains:

  • The visualization of structural elements: a function to create geometrical 3D representations of mechanical models called “structural elements”.
  • Utility functions to handle GEOM items in Salome study.

The functions are distributed in the python package salome.geom. For example, the usage of the visualization of structural elements can be appreciated with this set of instructions:

from salome.geom.structelem import TEST_StructuralElement
TEST_StructuralElement()

This creates the geometrical objects displayed in the study below:

_images/salome-geom-structuralelements.png

The specification of the programming interface of this package is detailled in the part Documentation of the programming interface (API) of this documentation.

Note

The main package salome contains other sub-packages that are distributed with the other SALOME modules. For example, the KERNEL module provides the python package salome.kernel and SMESH the package salome.smesh.

Previous topic

Documentation of the GEOM python package

Next topic

Documentation of the programming interface (API)

This Page