GeomAlgoAPI_WireBuilder.h
GeomAlgoAPI_Sewing.h
GeomAlgoAPI_ShapeBuilder.h
- GeomAlgoAPI_DirectAPI.h
+ GeomAlgoAPI_ShapeAPI.h
GeomAlgoAPI_Exception.h
GeomAlgoAPI_Box.h
GeomAlgoAPI_BoxPoints.h
GeomAlgoAPI_WireBuilder.cpp
GeomAlgoAPI_Sewing.cpp
GeomAlgoAPI_ShapeBuilder.cpp
- GeomAlgoAPI_DirectAPI.cpp
+ GeomAlgoAPI_ShapeAPI.cpp
GeomAlgoAPI_Exception.cpp
GeomAlgoAPI_Box.cpp
GeomAlgoAPI_BoxPoints.cpp
%include "GeomAlgoAPI_Sewing.h"
%include "GeomAlgoAPI_ShapeBuilder.h"
%include "GeomAlgoAPI_Exception.h"
-%include "GeomAlgoAPI_DirectAPI.h"
+%include "GeomAlgoAPI_ShapeAPI.h"
%typemap(out) std::list< std::shared_ptr< GeomAPI_Shape > >::value_type & {
$result = SWIG_NewPointerObj(SWIG_as_voidptr(new std::shared_ptr<GeomAPI_Shape>(*$1)), $descriptor(std::shared_ptr<GeomAPI_Shape> *), SWIG_POINTER_OWN | 0 );
+++ /dev/null
-// Copyright (C) 2014-2016 CEA/DEN, EDF R&D
-
-// File: GeomAlgoAPI_DirectAPI.cpp
-// Created: 17 Mar 2016
-// Author: Clarisse Genrault (CEA)
-
-#include "GeomAlgoAPI_DirectAPI.h"
-#include <GeomAlgoAPI_Box.h>
-#include <GeomAlgoAPI_BoxPoints.h>
-
-#include <GeomAPI_Pnt.h>
-#include <GeomAPI_Edge.h>
-#include <GeomAlgoAPI_EdgeBuilder.h>
-
-#include <iostream>
-
-namespace GeomAlgoAPI_DirectAPI
-{
- //=========================================================================================================
- std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_DirectAPI::makeBox(const double theDx, const double theDy,
- const double theDz) throw (GeomAlgoAPI_Exception)
- {
- GeomAlgoAPI_Box aBoxAlgo(theDx,theDy,theDz);
-
- if (!aBoxAlgo.check()) {
- throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
- }
-
- aBoxAlgo.build();
-
- if(!aBoxAlgo.isDone()) {
- throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
- }
- if (!aBoxAlgo.checkValid("Box builder with dimensions")) {
- throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
- }
- return aBoxAlgo.shape();
- }
-
- //=========================================================================================================
- std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_DirectAPI::makeBox(std::shared_ptr<GeomAPI_Pnt> theFirstPoint,
- std::shared_ptr<GeomAPI_Pnt> theSecondPoint) throw (GeomAlgoAPI_Exception)
- {
- GeomAlgoAPI_BoxPoints aBoxAlgo(theFirstPoint, theSecondPoint);
-
- if (!aBoxAlgo.check()) {
- throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
- }
-
- aBoxAlgo.build();
-
- if(!aBoxAlgo.isDone()) {
- throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
- }
- if (!aBoxAlgo.checkValid("Box builder with two points")) {
- throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
- }
- return aBoxAlgo.shape();
- }
-}
+++ /dev/null
-// Copyright (C) 2014-2016 CEA/DEN, EDF R&D
-
-// File: GeomAlgoAPI_DirectAPI.h
-// Created: 17 Mar 2016
-// Author: Clarisse Genrault (CEA)
-
-#ifndef GEOMALGOAPI_DIRECTAPI_H
-#define GEOMALGOAPI_DIRECTAPI_H
-
-#include <GeomAPI_Shape.h>
-#include <GeomAPI_Pnt.h>
-#include <GeomAPI_Edge.h>
-
-#include <GeomAlgoAPI_Exception.h>
-
-namespace GeomAlgoAPI_DirectAPI
-{
-/**\class GeomAlgoAPI_DirectAPI
- * \ingroup DataAlgo
- * \brief Allows to access the direct API
- */
-class GEOMALGOAPI_EXPORT GeomAlgoAPI_DirectAPI
-{
-public:
- /// Creates a box using the dimensions.
- /// \param theDx The dimension on X
- /// \param theDy The dimension on Y
- /// \param theDz The dimension on Z
- /// \return a shape
- static std::shared_ptr<GeomAPI_Shape> makeBox(const double theDx, const double theDy, const double theDz) throw (GeomAlgoAPI_Exception);
-
- /// Creates a box using the two points that defined a diagonal.
- /// \param theFirstPoint One extermity of the diagonal
- /// \param theSecondPoint The other extremity of the diagonal
- /// \return a shape
- static std::shared_ptr<GeomAPI_Shape> makeBox(std::shared_ptr<GeomAPI_Pnt> theFirstPoint,
- std::shared_ptr<GeomAPI_Pnt> theSecondPoint) throw (GeomAlgoAPI_Exception);
-};
-}
-#endif
--- /dev/null
+// Copyright (C) 2014-2016 CEA/DEN, EDF R&D
+
+// File: GeomAlgoAPI_ShapeAPI.cpp
+// Created: 17 Mar 2016
+// Author: Clarisse Genrault (CEA)
+
+#include "GeomAlgoAPI_ShapeAPI.h"
+#include <GeomAlgoAPI_Box.h>
+#include <GeomAlgoAPI_BoxPoints.h>
+
+#include <GeomAPI_Pnt.h>
+#include <GeomAPI_Edge.h>
+#include <GeomAlgoAPI_EdgeBuilder.h>
+
+#include <iostream>
+
+namespace GeomAlgoAPI_ShapeAPI
+{
+ //=========================================================================================================
+ std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_ShapeAPI::makeBox(const double theDx, const double theDy,
+ const double theDz) throw (GeomAlgoAPI_Exception)
+ {
+ GeomAlgoAPI_Box aBoxAlgo(theDx,theDy,theDz);
+
+ if (!aBoxAlgo.check()) {
+ throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
+ }
+
+ aBoxAlgo.build();
+
+ if(!aBoxAlgo.isDone()) {
+ throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
+ }
+ if (!aBoxAlgo.checkValid("Box builder with dimensions")) {
+ throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
+ }
+ return aBoxAlgo.shape();
+ }
+
+ //=========================================================================================================
+ std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_ShapeAPI::makeBox(std::shared_ptr<GeomAPI_Pnt> theFirstPoint,
+ std::shared_ptr<GeomAPI_Pnt> theSecondPoint) throw (GeomAlgoAPI_Exception)
+ {
+ GeomAlgoAPI_BoxPoints aBoxAlgo(theFirstPoint, theSecondPoint);
+
+ if (!aBoxAlgo.check()) {
+ throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
+ }
+
+ aBoxAlgo.build();
+
+ if(!aBoxAlgo.isDone()) {
+ throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
+ }
+ if (!aBoxAlgo.checkValid("Box builder with two points")) {
+ throw GeomAlgoAPI_Exception(aBoxAlgo.getError());
+ }
+ return aBoxAlgo.shape();
+ }
+}
--- /dev/null
+// Copyright (C) 2014-2016 CEA/DEN, EDF R&D
+
+// File: GeomAlgoAPI_ShapeAPI.h
+// Created: 17 Mar 2016
+// Author: Clarisse Genrault (CEA)
+
+#ifndef GEOMALGOAPI_DIRECTAPI_H
+#define GEOMALGOAPI_DIRECTAPI_H
+
+#include <GeomAPI_Shape.h>
+#include <GeomAPI_Pnt.h>
+#include <GeomAPI_Edge.h>
+
+#include <GeomAlgoAPI_Exception.h>
+
+namespace GeomAlgoAPI_ShapeAPI
+{
+/**\class GeomAlgoAPI_ShapeAPI
+ * \ingroup DataAlgo
+ * \brief Allows to access the direct API
+ */
+class GEOMALGOAPI_EXPORT GeomAlgoAPI_ShapeAPI
+{
+public:
+ /// Creates a box using the dimensions.
+ /// \param theDx The dimension on X
+ /// \param theDy The dimension on Y
+ /// \param theDz The dimension on Z
+ /// \return a shape
+ static std::shared_ptr<GeomAPI_Shape> makeBox(const double theDx, const double theDy, const double theDz) throw (GeomAlgoAPI_Exception);
+
+ /// Creates a box using the two points that defined a diagonal.
+ /// \param theFirstPoint One extermity of the diagonal
+ /// \param theSecondPoint The other extremity of the diagonal
+ /// \return a shape
+ static std::shared_ptr<GeomAPI_Shape> makeBox(std::shared_ptr<GeomAPI_Pnt> theFirstPoint,
+ std::shared_ptr<GeomAPI_Pnt> theSecondPoint) throw (GeomAlgoAPI_Exception);
+};
+}
+#endif
#include "GeomAlgoAPI_Sewing.h"
#include "GeomAlgoAPI_ShapeBuilder.h"
#include "GeomAlgoAPI_Exception.h"
- #include "GeomAlgoAPI_DirectAPI.h"
+ #include "GeomAlgoAPI_ShapeAPI.h"
#include "GeomAlgoAPI_Box.h"
#include "GeomAlgoAPI_BoxPoints.h"
-from GeomAlgoAPI import GeomAlgoAPI_DirectAPI as shaperpy
+from GeomAlgoAPI import GeomAlgoAPI_ShapeAPI as shaperpy
from GeomAlgoAPI import GeomAlgoAPI_Exception as myExcept
from GeomAPI import GeomAPI_Pnt as pnt