Salome HOME
c9d9a97fb69bcfdf3d5fdec67e3c224cbaeefb96
[modules/shaper.git] / src / PythonAPI / model / __init__.py
1 # Copyright (C) 2015-2023  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 """This package defines the Parametric Geometry API of the Modeler.
20
21 All features are available via model.add*() functions. Exceptions are:
22 - exportToFile() - from Exchange plugin
23 - duplicatePart(), removePart() - from PartSet plugin
24 - exportToGEOM() - from Connection plugin
25 """
26
27 # General purpose functions and abstract root classes
28
29 from .services  import *
30 from .roots     import *
31
32 # Built-in features
33
34 from .build import *
35 from .sketcher import *
36 from .connection import *
37 from .construction import *
38 from .exchange import *
39 from .features import *
40 from .filters import *
41 from .collection import *
42 from .parameter import *
43 from .partset import *
44 from .primitives import *
45 from .gdml import *
46 from .tests import *
47
48 # Add-on features
49
50 from .addons import *
51 # move functions from .addons to top level (model) package
52 import inspect
53 for attribute_name in dir(addons):
54     attribute = getattr(addons, attribute_name)
55     if inspect.isfunction(attribute):
56         globals()[attribute_name] = attribute
57 del inspect