X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI.i;h=b01c33325a050510eb0fc0badf10ed95da26a77a;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=56ab015a7362fe37d094886783b38a1164553c7c;hpb=4c74e5b864eef28128e27b3ece944990ca8f3fbe;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI.i b/src/GeomAPI/GeomAPI.i index 56ab015a7..b01c33325 100644 --- a/src/GeomAPI/GeomAPI.i +++ b/src/GeomAPI/GeomAPI.i @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2024 CEA, EDF // // 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_BSpline) +%shared_ptr(GeomAPI_BSpline2d) %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_WireExplorer) %shared_ptr(GeomAPI_XY) %shared_ptr(GeomAPI_XYZ) @@ -103,6 +106,18 @@ } } +%typemap(in, numinputs=0) double & (double temp) { + $1 = &temp; +} + +%typemap(argout) double & { + $result = SWIG_Python_AppendOutput($result, PyFloat_FromDouble(*$1)); +} + +// std::dynamic_pointer_cast +template std::shared_ptr shared_ptr_cast(std::shared_ptr theObject); +%template(shapeToEdge) shared_ptr_cast; + // all supported interfaces %include "GeomAPI_Interface.h" @@ -114,6 +129,8 @@ %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" @@ -144,6 +161,7 @@ %include "GeomAPI_Trsf.h" %include "GeomAPI_Vertex.h" %include "GeomAPI_Wire.h" +%include "GeomAPI_WireExplorer.h" %include "GeomAPI_XY.h" %include "GeomAPI_XYZ.h" @@ -151,6 +169,7 @@ %template(PointList) std::list >; %template(ShapeList) std::list >; // std::set -> [] +%template(CurveSet) std::set, GeomAPI_Curve::Comparator>; %template(ShapeSet) std::set, GeomAPI_Shape::Comparator>; %template(OriShapeSet) std::set, GeomAPI_Shape::ComparatorWithOri>; // std::map -> {}