${PROJECT_SOURCE_DIR}/src/XAO
${PROJECT_SOURCE_DIR}/src/ConstructionPlugin
${PROJECT_SOURCE_DIR}/src/PartSetPlugin
+ ${QT_INCLUDES}
+ ${PROJECT_SOURCE_DIR}/src/PrimitivesPlugin
+ ${OpenCASCADE_INCLUDE_DIR}
)
+# additional preprocessor / compiler flags
+ADD_DEFINITIONS(${QT_DEFINITIONS})
+
SET(PROJECT_HEADERS
ExchangePlugin.h
ExchangePlugin_Plugin.h
GeomAlgoAPI_Chamfer.h
GeomAlgoAPI_Defeaturing.h
GeomAlgoAPI_BoundingBox.h
- GeomAlgoAPI_Tube.h
+ GeomAlgoAPI_NormalToFace.h
+ GeomAlgoAPI_ShapeInfo.h
+ GeomAlgoAPI_Tube.h
+ GeomAlgoAPI_ROOTExport.h
)
SET(PROJECT_SOURCES
GeomAlgoAPI_Chamfer.cpp
GeomAlgoAPI_Defeaturing.cpp
GeomAlgoAPI_BoundingBox.cpp
- GeomAlgoAPI_Tube.cpp
+ GeomAlgoAPI_NormalToFace.cpp
+ GeomAlgoAPI_ShapeInfo.cpp
+ GeomAlgoAPI_Tube.cpp
+ GeomAlgoAPI_ROOTExport.cpp
)
SET(PROJECT_LIBRARIES
* \ingroup Plugins
* \brief Feature for creation of a tube primitive using various methods.
*
-- * Tube creates a tuboid - Holed cylinder. It can be built via two methods :
++ * Tube creates a tuboid - Holed cylinder. It can be built via two methods :
* using an inner raidus, an outer radius and a heigth or radii (inner and outer)
* and angles.
*/
:linenos:
:language: python
--:download:`Download this script <examples/sphere1.py>`
++:download:`Download this script <examples/sphere1.py>`
:linenos:
:language: python
--:download:`Download this script <examples/sphere2.py>`
++:download:`Download this script <examples/sphere2.py>`
:linenos:
:language: python
--:download:`Download this script <examples/tube.py>`
--
++:download:`Download this script <examples/tube.py>`
++
from .parameter import *
from .partset import *
from .primitives import *
+ from .opera import *
from .gdml import *
from .tests import *
+
+# Add-on features
+
+from .addons import *
+# move functions from .addons to top level (model) package
+import inspect
+for attribute_name in dir(addons):
+ attribute = getattr(addons, attribute_name)
+ if inspect.isfunction(attribute):
+ globals()[attribute_name] = attribute
+del inspect