/* ModelAPI.i */
%module ModelAPI
%{
+ #include "GeomAPI_Interface.h"
+ #include "GeomAPI_Shape.h"
#include "ModelAPI.h"
#include "ModelAPI_Document.h"
#include "ModelAPI_PluginManager.h"
// boost pointers
%include <boost_shared_ptr.i>
+// For ModelAPI_ResultConstruction.shape()
+%shared_ptr(GeomAPI_Interface)
+%shared_ptr(GeomAPI_Shape)
%shared_ptr(ModelAPI_Document)
%shared_ptr(ModelAPI_PluginManager)
%shared_ptr(ModelAPI_Object)
%shared_ptr(ModelAPI_ResultConstruction)
// all supported interfaces
+%include "GeomAPI_Interface.h"
+%include "GeomAPI_Shape.h"
%include "ModelAPI_Document.h"
%include "ModelAPI_PluginManager.h"
%include "ModelAPI_Object.h"
# Check results
#===============================================================================
aResult = aSketchLine.firstResult()
-assert (aResult is not None)
aResultConstruction = modelAPI_ResultConstruction(aResult)
-aShape = aResult.shape()
+aShape = aResultConstruction.shape()
assert (aShape is not None)
assert (not aShape.isNull())
#==============================================================================