mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 18:18:35 +05:00
36 lines
1.2 KiB
ReStructuredText
36 lines
1.2 KiB
ReStructuredText
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
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:
|
|
|
|
.. code-block:: python
|
|
|
|
from salome.geom.structelem import TEST_StructuralElement
|
|
TEST_StructuralElement()
|
|
|
|
This creates the geometrical objects displayed in the study below:
|
|
|
|
.. image:: /images/salome-geom-structuralelements.png
|
|
:align: center
|
|
|
|
The specification of the programming interface of this package is
|
|
detailled in the part :doc:`Documentation of the programming interface
|
|
(API)</docapi>` 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``.
|