%include "GeomAlgoAPI_ShapeProps.h"
%include "GeomAlgoAPI_SketchBuilder.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 );
+}
%template(ShapeList) std::list<std::shared_ptr<GeomAPI_Shape> >;
\ No newline at end of file
dx = geomDataAPI_Dir( self.my.data().attribute("DirX") ).dir()
n = geomDataAPI_Dir( self.my.data().attribute("Norm") ).dir()
- self.faces = ShapeList() # The faces are kept otherwise they are destroyed at exit
- GeomAlgoAPI_SketchBuilder.createFaces(o, dx, n, self.selection, self.faces)
+ faces = ShapeList() # The faces are kept otherwise they are destroyed at exit
+ GeomAlgoAPI_SketchBuilder.createFaces(o, dx, n, self.selection, faces)
#TODO: Deal with several faces
- return self.faces[0]
+ return faces[0]
def result (self):
"""Returns the result data of this Feature."""