Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated copyright comment
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI.i
diff --git
a/src/GeomAPI/GeomAPI.i
b/src/GeomAPI/GeomAPI.i
index 4c4110155cfe305b7d424d90bc1b9dfd97648cb4..b01c33325a050510eb0fc0badf10ed95da26a77a 100644
(file)
--- a/
src/GeomAPI/GeomAPI.i
+++ b/
src/GeomAPI/GeomAPI.i
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-20
19 CEA/DEN, EDF R&D
+// Copyright (C) 2014-20
24 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-42,6
+42,8
@@
%shared_ptr(GeomAPI_Ax2)
%shared_ptr(GeomAPI_Ax3)
%shared_ptr(GeomAPI_Box)
%shared_ptr(GeomAPI_Ax2)
%shared_ptr(GeomAPI_Ax3)
%shared_ptr(GeomAPI_Box)
+%shared_ptr(GeomAPI_BSpline)
+%shared_ptr(GeomAPI_BSpline2d)
%shared_ptr(GeomAPI_Circ)
%shared_ptr(GeomAPI_Circ2d)
%shared_ptr(GeomAPI_Cone)
%shared_ptr(GeomAPI_Circ)
%shared_ptr(GeomAPI_Circ2d)
%shared_ptr(GeomAPI_Cone)
@@
-74,6
+76,7
@@
%shared_ptr(GeomAPI_Trsf)
%shared_ptr(GeomAPI_Vertex)
%shared_ptr(GeomAPI_Wire)
%shared_ptr(GeomAPI_Trsf)
%shared_ptr(GeomAPI_Vertex)
%shared_ptr(GeomAPI_Wire)
+%shared_ptr(GeomAPI_WireExplorer)
%shared_ptr(GeomAPI_XY)
%shared_ptr(GeomAPI_XYZ)
%shared_ptr(GeomAPI_XY)
%shared_ptr(GeomAPI_XYZ)
@@
-103,17
+106,18
@@
}
}
}
}
-%typemap(in) double & (double temp) {
- if (PyLong_Check($input)) {
- temp = PyLong_AsLong($input);
- $1 = &temp;
- }
+%typemap(in, numinputs=0) double & (double temp) {
+ $1 = &temp;
}
%typemap(argout) double & {
}
%typemap(argout) double & {
- $result =
PyFloat_FromDouble(*$1
);
+ $result =
SWIG_Python_AppendOutput($result, PyFloat_FromDouble(*$1)
);
}
}
+// std::dynamic_pointer_cast
+template<class T1, class T2> std::shared_ptr<T1> shared_ptr_cast(std::shared_ptr<T2> theObject);
+%template(shapeToEdge) shared_ptr_cast<GeomAPI_Edge, GeomAPI_Shape>;
+
// all supported interfaces
%include "GeomAPI_Interface.h"
// all supported interfaces
%include "GeomAPI_Interface.h"
@@
-125,6
+129,8
@@
%include "GeomAPI_Ax2.h"
%include "GeomAPI_Ax3.h"
%include "GeomAPI_Box.h"
%include "GeomAPI_Ax2.h"
%include "GeomAPI_Ax3.h"
%include "GeomAPI_Box.h"
+%include "GeomAPI_BSpline.h"
+%include "GeomAPI_BSpline2d.h"
%include "GeomAPI_Circ.h"
%include "GeomAPI_Circ2d.h"
%include "GeomAPI_Cone.h"
%include "GeomAPI_Circ.h"
%include "GeomAPI_Circ2d.h"
%include "GeomAPI_Cone.h"
@@
-155,6
+161,7
@@
%include "GeomAPI_Trsf.h"
%include "GeomAPI_Vertex.h"
%include "GeomAPI_Wire.h"
%include "GeomAPI_Trsf.h"
%include "GeomAPI_Vertex.h"
%include "GeomAPI_Wire.h"
+%include "GeomAPI_WireExplorer.h"
%include "GeomAPI_XY.h"
%include "GeomAPI_XYZ.h"
%include "GeomAPI_XY.h"
%include "GeomAPI_XYZ.h"
@@
-162,6
+169,7
@@
%template(PointList) std::list<std::shared_ptr<GeomAPI_Pnt> >;
%template(ShapeList) std::list<std::shared_ptr<GeomAPI_Shape> >;
// std::set -> []
%template(PointList) std::list<std::shared_ptr<GeomAPI_Pnt> >;
%template(ShapeList) std::list<std::shared_ptr<GeomAPI_Shape> >;
// std::set -> []
+%template(CurveSet) std::set<std::shared_ptr<GeomAPI_Curve>, GeomAPI_Curve::Comparator>;
%template(ShapeSet) std::set<std::shared_ptr<GeomAPI_Shape>, GeomAPI_Shape::Comparator>;
%template(OriShapeSet) std::set<std::shared_ptr<GeomAPI_Shape>, GeomAPI_Shape::ComparatorWithOri>;
// std::map -> {}
%template(ShapeSet) std::set<std::shared_ptr<GeomAPI_Shape>, GeomAPI_Shape::Comparator>;
%template(OriShapeSet) std::set<std::shared_ptr<GeomAPI_Shape>, GeomAPI_Shape::ComparatorWithOri>;
// std::map -> {}