From 9ac27f1f06c563c5081f2e8c438ebbdb0f8bdf9f Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 28 Jan 2021 12:27:47 +0300 Subject: [PATCH] bos #20564 EDF 22692 - Extrusion not possible --- src/GeomAlgoAPI/GeomAlgoAPI_Prism.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.39.2