#include <GeomAPI_Ax3.h>
#include <GeomAPI_Pnt.h>
#include <ModelAPI_Session.h>
+#include <ModelAPI_Document.h>
+#include <ModelAPI_ResultConstruction.h>
#include <cmath>
return std::string();
}
+std::shared_ptr<ModelAPI_Result> standardPlane(const std::string & theName){
+ DocumentPtr aPartSet = ModelAPI_Session::get()->moduleDocument();
+ // searching for the construction element
+ return std::dynamic_pointer_cast<ModelAPI_Result>(
+ aPartSet->objectByName(ModelAPI_ResultConstruction::group(), theName));
+}
+
//--------------------------------------------------------------------------------------
void begin()
{