]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ConstructionAPI/ConstructionAPI_Plane.cpp
Salome HOME
Issue #1649: Added options to create plane by three points;
[modules/shaper.git] / src / ConstructionAPI / ConstructionAPI_Plane.cpp
index 61a72e06141b9c2e591b970908b11999fe970242..b33d4d74611c3d39ee3ae8d7c6cb9cdf1756f83d 100644 (file)
@@ -48,7 +48,8 @@ void ConstructionAPI_Plane::setFaceAndDistance(
     const ModelHighAPI_Selection & theFace,
     const ModelHighAPI_Double & theDistance)
 {
-  fillAttribute(theFace, myface);
+  fillAttribute("PlaneByFaceAndDistance", mycreationMethod);
+  fillAttribute(theFace, myplane);
   fillAttribute(theDistance, mydistance);
 
   execute();
@@ -60,6 +61,7 @@ void ConstructionAPI_Plane::setGeneralEquation(
     const ModelHighAPI_Double & theC,
     const ModelHighAPI_Double & theD)
 {
+  fillAttribute("PlaneByGeneralEquation", mycreationMethod);
   fillAttribute(theA, myA);
   fillAttribute(theB, myB);
   fillAttribute(theC, myC);