//--------------------------------------------------------------------------------------
#include "ConstructionAPI_Plane.h"
//--------------------------------------------------------------------------------------
-#include <ModelHighAPI_Double.h>
-#include <ModelHighAPI_Selection.h>
+#include <ModelHighAPI_Tools.h>
//--------------------------------------------------------------------------------------
ConstructionAPI_Plane::ConstructionAPI_Plane(
const std::shared_ptr<ModelAPI_Feature> & theFeature)
const ModelHighAPI_Selection & theFace,
const ModelHighAPI_Double & theDistance)
{
- theFace.fillAttribute(myface);
- theDistance.fillAttribute(mydistance);
+ fillAttribute("PlaneByFaceAndDistance", mycreationMethod);
+ fillAttribute(theFace, myplane);
+ fillAttribute(theDistance, mydistance);
execute();
}
const ModelHighAPI_Double & theC,
const ModelHighAPI_Double & theD)
{
- theA.fillAttribute(myA);
- theB.fillAttribute(myB);
- theC.fillAttribute(myC);
- theD.fillAttribute(myD);
+ fillAttribute("PlaneByGeneralEquation", mycreationMethod);
+ fillAttribute(theA, myA);
+ fillAttribute(theB, myB);
+ fillAttribute(theC, myC);
+ fillAttribute(theD, myD);
execute();
}
//--------------------------------------------------------------------------------------
-// TODO(spo): make add* as static functions of the class
-
PlanePtr addPlane(const std::shared_ptr<ModelAPI_Document> & thePart,
const ModelHighAPI_Selection & theFace,
const ModelHighAPI_Double & theDistance)