X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Plane.cpp;h=adcd4c1229bdf34e622cc1adaa0a629994f60515;hb=13d3f0d8b46a06931cbe8620b8563049eff4a9f6;hp=13ae2b36d65cb7fe6ca22bcdeb2f398b22172352;hpb=1a8aa827e187ffca7d952c92b81f1801c9fb0d0e;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp b/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp index 13ae2b36d..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); } @@ -95,6 +96,10 @@ std::shared_ptr ConstructionPlugin_Plane::createPlaneByFaceAndDi double aDist = aDistAttr->value(); GeomShapePtr aShape = aFaceAttr->value(); + if (!aShape.get()) { + aShape = aFaceAttr->context()->shape(); + } + if (aShape.get() != NULL) { std::shared_ptr aPln = GeomAlgoAPI_FaceBuilder::plane(aShape); std::shared_ptr aOrig = aPln->location();