From: jfa Date: Thu, 28 Jan 2021 09:27:47 +0000 (+0300) Subject: bos #20564 EDF 22692 - Extrusion not possible X-Git-Tag: V9_7_0a1~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9ac27f1f06c563c5081f2e8c438ebbdb0f8bdf9f;p=modules%2Fshaper.git bos #20564 EDF 22692 - Extrusion not possible --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Prism.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Prism.cpp index 6903fbdb6..c9a9a4443 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Prism.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Prism.cpp @@ -184,11 +184,11 @@ GeomAlgoAPI_Prism::GeomAlgoAPI_Prism(const GeomShapePtr theBaseShape, Handle(Geom_RectangularTrimmedSurface)::DownCast(aSurface); aSurface = aTrimSurface->BasisSurface(); } - if(aSurface->DynamicType() != STANDARD_TYPE(Geom_Plane)) { - return; - } - aPlane = Handle(Geom_Plane)::DownCast(aSurface); - } else { + if (aSurface->DynamicType() == STANDARD_TYPE(Geom_Plane)) + aPlane = Handle(Geom_Plane)::DownCast(aSurface); + } + + if (aPlane.IsNull()) { aPlane = aFindPlane.Plane(); checkOrientation = true; }