X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Plane.cpp;h=adcd4c1229bdf34e622cc1adaa0a629994f60515;hb=13d3f0d8b46a06931cbe8620b8563049eff4a9f6;hp=549773ab7a2902a3b041d02770e09f5fc0697bbc;hpb=4258e40f486af7393e3c76219d31c51a28aee240;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp b/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp index 549773ab7..adcd4c122 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp @@ -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 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; }