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
Task 2.12. New entities: ellipses and arcs of ellipses (issue #3003)
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI.i
diff --git
a/src/GeomAPI/GeomAPI.i
b/src/GeomAPI/GeomAPI.i
index 56ab015a7362fe37d094886783b38a1164553c7c..4c4110155cfe305b7d424d90bc1b9dfd97648cb4 100644
(file)
--- a/
src/GeomAPI/GeomAPI.i
+++ b/
src/GeomAPI/GeomAPI.i
@@
-103,6
+103,17
@@
}
}
}
}
+%typemap(in) double & (double temp) {
+ if (PyLong_Check($input)) {
+ temp = PyLong_AsLong($input);
+ $1 = &temp;
+ }
+}
+
+%typemap(argout) double & {
+ $result = PyFloat_FromDouble(*$1);
+}
+
// all supported interfaces
%include "GeomAPI_Interface.h"
// all supported interfaces
%include "GeomAPI_Interface.h"