1 // Copyright (C) 2014-2020 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
25 #include "SketchAPI_swig.h"
26 #include "ModelHighAPI_swig.h"
28 // fix for SWIG v2.0.4
29 #define SWIGPY_SLICE_ARG(obj) ((PyObject*)(obj))
34 // import other modules
37 %import "ModelHighAPI.i"
39 // to avoid error on this
40 #define SKETCHAPI_EXPORT
42 // standard definitions
46 %include "std_shared_ptr.i"
48 // function with named parameters
49 %feature("kwargs") SketchAPI_BSpline::controlPoles;
50 %feature("kwargs") SketchAPI_BSpline::controlPolygon;
51 %feature("kwargs") SketchAPI_Ellipse::construction;
52 %feature("kwargs") SketchAPI_EllipticArc::construction;
53 %feature("kwargs") SketchAPI_Sketch::addApproximation;
54 %feature("kwargs") SketchAPI_Sketch::addInterpolation;
55 %feature("kwargs") SketchAPI_Sketch::addProjection;
56 %feature("kwargs") SketchAPI_Sketch::addSpline;
57 %feature("kwargs") SketchAPI_Sketch::setAngle;
60 %shared_ptr(SketchAPI_Arc)
61 %shared_ptr(SketchAPI_MacroArc)
62 %shared_ptr(SketchAPI_Circle)
63 %shared_ptr(SketchAPI_MacroCircle)
64 %shared_ptr(SketchAPI_Ellipse)
65 %shared_ptr(SketchAPI_MacroEllipse)
66 %shared_ptr(SketchAPI_EllipticArc)
67 %shared_ptr(SketchAPI_MacroEllipticArc)
68 %shared_ptr(SketchAPI_BSpline)
69 %shared_ptr(SketchAPI_BSplinePeriodic)
70 %shared_ptr(SketchAPI_Constraint)
71 %shared_ptr(SketchAPI_ConstraintAngle)
72 %shared_ptr(SketchAPI_IntersectionPoint)
73 %shared_ptr(SketchAPI_Line)
74 %shared_ptr(SketchAPI_Mirror)
75 %shared_ptr(SketchAPI_Offset)
76 %shared_ptr(SketchAPI_Sketch)
77 %shared_ptr(SketchAPI_SketchEntity)
78 %shared_ptr(SketchAPI_Point)
79 %shared_ptr(SketchAPI_Projection)
80 %shared_ptr(SketchAPI_Rectangle)
81 %shared_ptr(SketchAPI_Rotation)
82 %shared_ptr(SketchAPI_Translation)
85 %template(InterfaceList) std::list<std::shared_ptr<ModelHighAPI_Interface> >;
86 %template(EntityList) std::list<std::shared_ptr<SketchAPI_SketchEntity> >;
87 %template(SketchPointList) std::list<std::shared_ptr<SketchAPI_Point> >;
88 %template(GeomPnt2dList) std::list<std::shared_ptr<GeomAPI_Pnt2d> >;
90 %template(PointRefAttrPair) std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>;
92 %typecheck(SWIG_TYPECHECK_POINTER) std::shared_ptr<ModelAPI_Feature>, const std::shared_ptr<ModelAPI_Feature> & {
93 std::shared_ptr<ModelAPI_Feature> * temp_feature;
94 std::shared_ptr<ModelHighAPI_Interface> * temp_interface;
96 if ((SWIG_ConvertPtrAndOwn($input, (void **)&temp_feature, $descriptor(std::shared_ptr<ModelAPI_Feature> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
103 if ((SWIG_ConvertPtrAndOwn($input, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
104 if (temp_interface) {
113 %typemap(in) const std::shared_ptr<ModelAPI_Feature> & (std::shared_ptr<ModelAPI_Feature> temp) {
114 std::shared_ptr<ModelAPI_Feature> * temp_feature;
115 std::shared_ptr<ModelHighAPI_Interface> * temp_interface;
117 if ((SWIG_ConvertPtrAndOwn($input, (void **)&temp_feature, $descriptor(std::shared_ptr<ModelAPI_Feature> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
119 PyErr_SetString(PyExc_TypeError, "argument must be ModelHighAPI_Interface.");
122 temp = (*temp_feature);
123 if (newmem & SWIG_CAST_NEW_MEMORY) {
128 if ((SWIG_ConvertPtrAndOwn($input, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
129 if (!temp_interface) {
130 PyErr_SetString(PyExc_TypeError, "argument must be ModelHighAPI_Interface.");
133 temp = (*temp_interface)->feature();
134 if (newmem & SWIG_CAST_NEW_MEMORY) {
135 delete temp_interface;
139 if ((SWIG_ConvertPtr($input, (void **)&$1, $1_descriptor, SWIG_POINTER_EXCEPTION)) == 0) {
141 PyErr_SetString(PyExc_ValueError, "argument must be ModelHighAPI_Interface.");
146 %typemap(in) const std::list<std::shared_ptr<ModelAPI_Object> > & (std::list<std::shared_ptr<ModelAPI_Object> > temp) {
147 std::shared_ptr<ModelAPI_Object> * temp_object;
148 std::shared_ptr<ModelHighAPI_Interface> * temp_interface;
149 ModelHighAPI_Selection* temp_selection;
151 if (PySequence_Check($input)) {
152 for (Py_ssize_t i = 0; i < PySequence_Size($input); ++i) {
153 PyObject * item = PySequence_GetItem($input, i);
154 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_selection, $descriptor(ModelHighAPI_Selection*), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
155 if (!temp_selection) {
156 PyErr_SetString(PyExc_TypeError, "argument must be ModelHighAPI_Interface, ModelHighAPI_Selection or ModelAPI_Object.");
159 temp.push_back(temp_selection->resultSubShapePair().first);
160 if (newmem & SWIG_CAST_NEW_MEMORY) {
161 delete temp_selection;
164 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_object, $descriptor(std::shared_ptr<ModelAPI_Object> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
166 PyErr_SetString(PyExc_TypeError, "argument must be list of ModelHighAPI_Interface, ModelHighAPI_Selection or ModelAPI_Object.");
169 temp.push_back(*temp_object);
170 if (newmem & SWIG_CAST_NEW_MEMORY) {
174 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
175 if (!temp_interface) {
176 PyErr_SetString(PyExc_TypeError, "argument must be list of ModelHighAPI_Interface, ModelHighAPI_Selection or ModelAPI_Object.");
179 temp.push_back((*temp_interface)->defaultResult());
180 if (newmem & SWIG_CAST_NEW_MEMORY) {
181 delete temp_interface;
188 PyErr_SetString(PyExc_ValueError, "argument must be list of ModelHighAPI_Interface or ModelAPI_Object.");
193 %typecheck(SWIG_TYPECHECK_POINTER) std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>, const std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> & {
194 std::shared_ptr<ModelAPI_Attribute> * temp_attribute;
195 std::shared_ptr<ModelAPI_Object> * temp_object;
196 std::shared_ptr<ModelHighAPI_Interface> * temp_interface;
197 ModelHighAPI_Selection* temp_selection;
198 std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>* temp_pair;
199 std::shared_ptr<GeomAPI_Pnt2d> * temp_point;
200 ModelHighAPI_RefAttr temp_refattr;
202 std::list<PyObject*> temp_inputlist;
203 if (PySequence_Check($input)) {
204 for (Py_ssize_t i = 0; i < PySequence_Size($input); ++i) {
205 PyObject * temp = PySequence_GetItem($input, i);
206 temp_inputlist.push_back(temp);
209 temp_inputlist.push_back($input);
213 for (std::list<PyObject*>::iterator it = temp_inputlist.begin(); it != temp_inputlist.end() && $1; ++it) {
214 PyObject* item = *it;
216 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_selection, $descriptor(ModelHighAPI_Selection*), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
217 if (temp_selection) {
223 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_attribute, $descriptor(std::shared_ptr<ModelAPI_Attribute> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
224 if (temp_attribute) {
230 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_object, $descriptor(std::shared_ptr<ModelAPI_Object> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
237 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
238 if (temp_interface) {
244 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_pair, $descriptor(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
251 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_point, $descriptor(std::shared_ptr<GeomAPI_Pnt2d> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
263 %typemap(in) const std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> & (std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> temp) {
264 std::shared_ptr<ModelAPI_Attribute> * temp_attribute;
265 std::shared_ptr<ModelAPI_Object> * temp_object;
266 std::shared_ptr<ModelHighAPI_Interface> * temp_interface;
267 ModelHighAPI_Selection* temp_selection;
268 std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>* temp_pair;
269 std::shared_ptr<GeomAPI_Pnt2d> * temp_point = 0;
270 ModelHighAPI_RefAttr temp_refattr;
272 std::list<PyObject*> temp_inputlist;
273 if (PySequence_Check($input)) {
274 for (Py_ssize_t i = 0; i < PySequence_Size($input); ++i) {
275 PyObject * temp = PySequence_GetItem($input, i);
276 temp_inputlist.push_back(temp);
279 temp_inputlist.push_back($input);
282 for (std::list<PyObject*>::iterator it = temp_inputlist.begin(); it != temp_inputlist.end(); ++it) {
283 PyObject* item = *it;
285 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_selection, $descriptor(ModelHighAPI_Selection*), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
286 if (temp_selection) {
287 temp_refattr = ModelHighAPI_RefAttr(std::shared_ptr<ModelAPI_Object>(temp_selection->resultSubShapePair().first));
288 if (newmem & SWIG_CAST_NEW_MEMORY) {
289 delete temp_selection;
293 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_attribute, $descriptor(std::shared_ptr<ModelAPI_Attribute> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
294 if (temp_attribute) {
295 temp_refattr = ModelHighAPI_RefAttr(*temp_attribute);
296 if (newmem & SWIG_CAST_NEW_MEMORY) {
297 delete temp_attribute;
301 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_object, $descriptor(std::shared_ptr<ModelAPI_Object> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
303 temp_refattr = ModelHighAPI_RefAttr(*temp_object);
304 if (newmem & SWIG_CAST_NEW_MEMORY) {
309 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
310 if (temp_interface) {
311 temp_refattr = ModelHighAPI_RefAttr(*temp_interface);
312 if (newmem & SWIG_CAST_NEW_MEMORY) {
313 delete temp_interface;
317 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_pair, $descriptor(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
319 temp_point = &temp_pair->first;
320 temp_refattr = temp_pair->second;
321 if (newmem & SWIG_CAST_NEW_MEMORY) {
326 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_point, $descriptor(std::shared_ptr<GeomAPI_Pnt2d> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
331 if (temp_point || !temp_refattr.isEmpty()) {
333 temp = std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>(*temp_point, temp_refattr);
335 temp = std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>(std::shared_ptr<GeomAPI_Pnt2d>(), temp_refattr);
337 if (temp_point && (newmem & SWIG_CAST_NEW_MEMORY)) {
342 PyErr_SetString(PyExc_TypeError, "argument must be ModelHighAPI_RefAttr, ModelHighAPI_Selection, ModelHighAPI_Interface, ModelAPI_Attribute or ModelAPI_Object.");
347 // fix compilarion error: 'res*' was not declared in this scope
348 %typemap(freearg) const std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> & {}
351 %typemap(in) const std::list<std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> > & (std::list<std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> > temp) {
352 if (PySequence_Check($input)) {
353 for (Py_ssize_t i = 0; i < PySequence_Size($input); ++i) {
354 PyObject * item = PySequence_GetItem($input, i);
356 std::list<PyObject*> temp_inputlist;
357 if (PySequence_Check(item)) {
358 for (Py_ssize_t i = 0; i < PySequence_Size(item); ++i) {
359 PyObject * tmpItem = PySequence_GetItem(item, i);
360 temp_inputlist.push_back(tmpItem);
363 temp_inputlist.push_back(item);
366 std::shared_ptr<ModelAPI_Attribute> * temp_attribute = 0;
367 std::shared_ptr<ModelAPI_Object> * temp_object = 0;
368 std::shared_ptr<ModelHighAPI_Interface> * temp_interface = 0;
369 ModelHighAPI_Selection* temp_selection = 0;
370 std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>* temp_pair = 0;
371 std::shared_ptr<GeomAPI_Pnt2d> * temp_point = 0;
372 ModelHighAPI_RefAttr temp_refattr;
376 for (std::list<PyObject*>::iterator it = temp_inputlist.begin(); it != temp_inputlist.end(); ++it) {
377 PyObject* item = *it;
379 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_selection, $descriptor(ModelHighAPI_Selection*), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
380 if (temp_selection) {
381 temp_refattr = ModelHighAPI_RefAttr(std::shared_ptr<ModelAPI_Object>(temp_selection->resultSubShapePair().first));
382 if (newmem & SWIG_CAST_NEW_MEMORY) {
383 delete temp_selection;
387 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_attribute, $descriptor(std::shared_ptr<ModelAPI_Attribute> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
388 if (temp_attribute) {
389 temp_refattr = ModelHighAPI_RefAttr(*temp_attribute);
390 if (newmem & SWIG_CAST_NEW_MEMORY) {
391 delete temp_attribute;
395 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_object, $descriptor(std::shared_ptr<ModelAPI_Object> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
397 temp_refattr = ModelHighAPI_RefAttr(*temp_object);
398 if (newmem & SWIG_CAST_NEW_MEMORY) {
403 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
404 if (temp_interface) {
405 temp_refattr = ModelHighAPI_RefAttr(*temp_interface);
406 if (newmem & SWIG_CAST_NEW_MEMORY) {
407 delete temp_interface;
411 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_pair, $descriptor(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
413 temp_point = &temp_pair->first;
414 temp_refattr = temp_pair->second;
415 if (newmem & SWIG_CAST_NEW_MEMORY) {
420 if (PyTuple_Check(item)) {
421 if (PyTuple_Size(item) == 2) {
422 double x = (double)PyFloat_AsDouble(PySequence_GetItem(item, 0));
423 double y = (double)PyFloat_AsDouble(PySequence_GetItem(item, 1));
424 temp_point = new std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(x, y));
427 PyErr_SetString(PyExc_TypeError, "argument must a list of 2D points.");
431 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_point, $descriptor(std::shared_ptr<GeomAPI_Pnt2d> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
434 if (PyNumber_Check(item)) {
435 PyObject* item1 = *(++it);
436 if (PyNumber_Check(item1)) {
437 double x = (double)PyFloat_AsDouble(item);
438 double y = (double)PyFloat_AsDouble(item1);
439 temp_point = new std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(x, y));
442 PyErr_SetString(PyExc_TypeError, "argument must a list of 2D points.");
448 if (temp_point || !temp_refattr.isEmpty()) {
450 temp.push_back(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>(*temp_point, temp_refattr));
452 temp.push_back(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>(std::shared_ptr<GeomAPI_Pnt2d>(), temp_refattr));
454 if (temp_point && ((newmem & SWIG_CAST_NEW_MEMORY) || clearmem)) {
458 PyErr_SetString(PyExc_TypeError, "argument must be ModelHighAPI_RefAttr, ModelHighAPI_Selection, ModelHighAPI_Interface, ModelAPI_Attribute or ModelAPI_Object.");
465 PyErr_SetString(PyExc_ValueError, "argument must be a tuple of lists.");
470 %typecheck(SWIG_TYPECHECK_POINTER) std::list<std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> >, const std::list<std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> >& {
472 if (PySequence_Check($input)) {
473 for (Py_ssize_t i = 0; i < PySequence_Size($input) && $1; ++i) {
474 PyObject * item = PySequence_GetItem($input, i);
476 std::list<PyObject*> temp_inputlist;
477 if (PySequence_Check(item)) {
478 for (Py_ssize_t i = 0; i < PySequence_Size(item); ++i) {
479 PyObject * tmpItem = PySequence_GetItem(item, i);
480 temp_inputlist.push_back(tmpItem);
483 temp_inputlist.push_back(item);
486 std::shared_ptr<ModelAPI_Attribute> * temp_attribute = 0;
487 std::shared_ptr<ModelAPI_Object> * temp_object = 0;
488 std::shared_ptr<ModelHighAPI_Interface> * temp_interface = 0;
489 ModelHighAPI_Selection* temp_selection = 0;
490 std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>* temp_pair = 0;
491 std::shared_ptr<GeomAPI_Pnt2d> * temp_point = 0;
492 ModelHighAPI_RefAttr temp_refattr;
495 for (std::list<PyObject*>::iterator it = temp_inputlist.begin(); it != temp_inputlist.end() && $1; ++it) {
496 PyObject* item = *it;
498 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_selection, $descriptor(ModelHighAPI_Selection*), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
499 if (temp_selection) {
505 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_attribute, $descriptor(std::shared_ptr<ModelAPI_Attribute> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
506 if (temp_attribute) {
512 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_object, $descriptor(std::shared_ptr<ModelAPI_Object> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
519 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
520 if (temp_interface) {
526 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_pair, $descriptor(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
533 if (PyTuple_Check(item)) {
534 if (PyTuple_Size(item) == 2) {
535 if (PyNumber_Check(PySequence_GetItem(item, 0)) && PyNumber_Check(PySequence_GetItem(item, 1))) {
544 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_point, $descriptor(std::shared_ptr<GeomAPI_Pnt2d> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
551 if (PyNumber_Check(item)) {
564 // fix compilarion error: 'res*' was not declared in this scope
565 %typemap(freearg) const std::list<std::shared_ptr<GeomAPI_Pnt2d> > & {}
568 // all supported interfaces (the order is very important according dependencies: base class first)
569 %include "SketchAPI_SketchEntity.h"
570 %include "SketchAPI_Point.h"
571 %include "SketchAPI_IntersectionPoint.h"
572 %include "SketchAPI_Line.h"
573 %include "SketchAPI_Circle.h"
574 %include "SketchAPI_MacroCircle.h"
575 %include "SketchAPI_Arc.h"
576 %include "SketchAPI_MacroArc.h"
577 %include "SketchAPI_Ellipse.h"
578 %include "SketchAPI_MacroEllipse.h"
579 %include "SketchAPI_EllipticArc.h"
580 %include "SketchAPI_MacroEllipticArc.h"
581 %include "SketchAPI_BSpline.h"
582 %include "SketchAPI_Projection.h"
583 %include "SketchAPI_Mirror.h"
584 %include "SketchAPI_Offset.h"
585 %include "SketchAPI_Translation.h"
586 %include "SketchAPI_Rectangle.h"
587 %include "SketchAPI_Rotation.h"
588 %include "SketchAPI_Sketch.h"
589 %include "SketchAPI_Constraint.h"
590 %include "SketchAPI_ConstraintAngle.h"