Salome HOME
Issue #555: Infinite boolean state is stored in Result construction.
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Plane.cpp
index 549773ab7a2902a3b041d02770e09f5fc0697bbc..adcd4c1229bdf34e622cc1adaa0a629994f60515 100644 (file)
@@ -54,6 +54,7 @@ void ConstructionPlugin_Plane::execute()
   if (!aPlaneFace.get())
     return;
   ResultConstructionPtr aConstr = document()->createConstruction(data());
+  aConstr->setInfinite(true);
   aConstr->setShape(aPlaneFace);
   setResult(aConstr);
 }
@@ -153,7 +154,7 @@ std::shared_ptr<GeomAPI_Shape> ConstructionPlugin_Plane::createPlaneByGeneralEqu
     std::string kDefaultPlaneSize = "200";
     double aSize = Config_PropManager::integer("Sketch planes", "planes_size", kDefaultPlaneSize);
     aSize *= 4.;
-    aPlaneFace = GeomAlgoAPI_FaceBuilder::square(aPlane, aSize, true);
+    aPlaneFace = GeomAlgoAPI_FaceBuilder::square(aPlane, aSize);
   }
   return aPlaneFace;
 }