From 058a30e166a8474c2a8313cf4b5c1ef67bdcca05 Mon Sep 17 00:00:00 2001 From: Sergey POKHODENKO Date: Sat, 5 Dec 2015 23:49:23 +0300 Subject: [PATCH] Create folder model for sphinx documentation --- src/PythonAPI/doc/source/index.rst | 18 +--- src/PythonAPI/doc/source/model.rst | 101 ------------------ .../doc/source/{ => model}/boolean.rst | 0 .../doc/source/{ => model}/connection.rst | 0 .../doc/source/{ => model}/construction.rst | 0 .../doc/source/{ => model}/exchange.rst | 0 .../doc/source/{ => model}/extrusion.rst | 0 .../doc/source/{ => model}/group.rst | 0 .../doc/source/{ => model}/parameter.rst | 0 .../doc/source/{ => model}/partition.rst | 0 .../doc/source/{ => model}/partset.rst | 0 .../doc/source/{ => model}/placement.rst | 0 .../doc/source/{ => model}/revolution.rst | 0 .../doc/source/{ => model}/rotation.rst | 0 .../doc/source/{ => model}/translation.rst | 0 src/PythonAPI/geom/missed.py | 2 +- src/PythonAPI/model/features/boolean.py | 5 - 17 files changed, 3 insertions(+), 123 deletions(-) delete mode 100644 src/PythonAPI/doc/source/model.rst rename src/PythonAPI/doc/source/{ => model}/boolean.rst (100%) rename src/PythonAPI/doc/source/{ => model}/connection.rst (100%) rename src/PythonAPI/doc/source/{ => model}/construction.rst (100%) rename src/PythonAPI/doc/source/{ => model}/exchange.rst (100%) rename src/PythonAPI/doc/source/{ => model}/extrusion.rst (100%) rename src/PythonAPI/doc/source/{ => model}/group.rst (100%) rename src/PythonAPI/doc/source/{ => model}/parameter.rst (100%) rename src/PythonAPI/doc/source/{ => model}/partition.rst (100%) rename src/PythonAPI/doc/source/{ => model}/partset.rst (100%) rename src/PythonAPI/doc/source/{ => model}/placement.rst (100%) rename src/PythonAPI/doc/source/{ => model}/revolution.rst (100%) rename src/PythonAPI/doc/source/{ => model}/rotation.rst (100%) rename src/PythonAPI/doc/source/{ => model}/translation.rst (100%) diff --git a/src/PythonAPI/doc/source/index.rst b/src/PythonAPI/doc/source/index.rst index 91677e73d..8d06304bf 100644 --- a/src/PythonAPI/doc/source/index.rst +++ b/src/PythonAPI/doc/source/index.rst @@ -36,24 +36,10 @@ to modify the feature and retrieve data from it. .. toctree:: :maxdepth: 1 + :glob: sketcher - - connection - construction - exchange - - boolean - partition - extrusion - revolution - placement - rotation - translation - group - - parameter - partset + model/* Indices and tables ================== diff --git a/src/PythonAPI/doc/source/model.rst b/src/PythonAPI/doc/source/model.rst deleted file mode 100644 index 865de2ab2..000000000 --- a/src/PythonAPI/doc/source/model.rst +++ /dev/null @@ -1,101 +0,0 @@ -.. py:module:: model - -Parametric Geometry API -*********************** - -.. automodule:: model - :members: - :special-members: - -Common Modules -============== - -This modules are used by other submodules of Parametric Geometry API. - -roots ------ - -.. automodule:: model.roots - :members: - :special-members: - -services --------- - -.. automodule:: model.services - :members: - :special-members: - -tools ------ - -.. automodule:: model.tools - :members: - :special-members: - -errors ------- - -.. automodule:: model.errors - :members: - :special-members: - -Modules fo Plugins -================== - -connection ----------- - -.. automodule:: model.connection - :members: - :special-members: - -.. autofunction:: model.connection.connection.exportToGEOM - -construction ------------- - -.. automodule:: model.construction - :members: - :special-members: - -exchange --------- - -.. automodule:: model.exchange - :members: - :special-members: - -features --------- - -.. automodule:: model.features - :members: - :special-members: - -parameter -......... - -.. automodule:: model.parameter - :members: - :special-members: - -partset -------- - -.. automodule:: model.partset - :members: - :special-members: - -sketcher --------- - -.. automodule:: model.sketcher - :members: - :special-members: - -.. toctree:: - :maxdepth: 1 - - sketcher - diff --git a/src/PythonAPI/doc/source/boolean.rst b/src/PythonAPI/doc/source/model/boolean.rst similarity index 100% rename from src/PythonAPI/doc/source/boolean.rst rename to src/PythonAPI/doc/source/model/boolean.rst diff --git a/src/PythonAPI/doc/source/connection.rst b/src/PythonAPI/doc/source/model/connection.rst similarity index 100% rename from src/PythonAPI/doc/source/connection.rst rename to src/PythonAPI/doc/source/model/connection.rst diff --git a/src/PythonAPI/doc/source/construction.rst b/src/PythonAPI/doc/source/model/construction.rst similarity index 100% rename from src/PythonAPI/doc/source/construction.rst rename to src/PythonAPI/doc/source/model/construction.rst diff --git a/src/PythonAPI/doc/source/exchange.rst b/src/PythonAPI/doc/source/model/exchange.rst similarity index 100% rename from src/PythonAPI/doc/source/exchange.rst rename to src/PythonAPI/doc/source/model/exchange.rst diff --git a/src/PythonAPI/doc/source/extrusion.rst b/src/PythonAPI/doc/source/model/extrusion.rst similarity index 100% rename from src/PythonAPI/doc/source/extrusion.rst rename to src/PythonAPI/doc/source/model/extrusion.rst diff --git a/src/PythonAPI/doc/source/group.rst b/src/PythonAPI/doc/source/model/group.rst similarity index 100% rename from src/PythonAPI/doc/source/group.rst rename to src/PythonAPI/doc/source/model/group.rst diff --git a/src/PythonAPI/doc/source/parameter.rst b/src/PythonAPI/doc/source/model/parameter.rst similarity index 100% rename from src/PythonAPI/doc/source/parameter.rst rename to src/PythonAPI/doc/source/model/parameter.rst diff --git a/src/PythonAPI/doc/source/partition.rst b/src/PythonAPI/doc/source/model/partition.rst similarity index 100% rename from src/PythonAPI/doc/source/partition.rst rename to src/PythonAPI/doc/source/model/partition.rst diff --git a/src/PythonAPI/doc/source/partset.rst b/src/PythonAPI/doc/source/model/partset.rst similarity index 100% rename from src/PythonAPI/doc/source/partset.rst rename to src/PythonAPI/doc/source/model/partset.rst diff --git a/src/PythonAPI/doc/source/placement.rst b/src/PythonAPI/doc/source/model/placement.rst similarity index 100% rename from src/PythonAPI/doc/source/placement.rst rename to src/PythonAPI/doc/source/model/placement.rst diff --git a/src/PythonAPI/doc/source/revolution.rst b/src/PythonAPI/doc/source/model/revolution.rst similarity index 100% rename from src/PythonAPI/doc/source/revolution.rst rename to src/PythonAPI/doc/source/model/revolution.rst diff --git a/src/PythonAPI/doc/source/rotation.rst b/src/PythonAPI/doc/source/model/rotation.rst similarity index 100% rename from src/PythonAPI/doc/source/rotation.rst rename to src/PythonAPI/doc/source/model/rotation.rst diff --git a/src/PythonAPI/doc/source/translation.rst b/src/PythonAPI/doc/source/model/translation.rst similarity index 100% rename from src/PythonAPI/doc/source/translation.rst rename to src/PythonAPI/doc/source/model/translation.rst diff --git a/src/PythonAPI/geom/missed.py b/src/PythonAPI/geom/missed.py index f5a6cfca8..247cfef3a 100644 --- a/src/PythonAPI/geom/missed.py +++ b/src/PythonAPI/geom/missed.py @@ -2,7 +2,7 @@ # Author: Daniel Brunier-Coulin # ----------------------------- -from GeomAPI import * +#from GeomAPI import * class Ax3: diff --git a/src/PythonAPI/model/features/boolean.py b/src/PythonAPI/model/features/boolean.py index 89ce1fd6b..ef294346e 100644 --- a/src/PythonAPI/model/features/boolean.py +++ b/src/PythonAPI/model/features/boolean.py @@ -3,13 +3,8 @@ Author: Daniel Brunier-Coulin Copyright (C) 2014-20xx CEA/DEN, EDF R&D """ -from ModelAPI import * -from GeomAlgoAPI import * - - from model.roots import Interface - def addAddition(part, *args): """Inserts an addition to the given Part and executes the operation. This operation adds tool to the given object. -- 2.39.2