Salome HOME
Issue #18755 (Tuleap): Do not process key events if a modal window is displayed
[modules/shaper.git] / src / GeomAPI / GeomAPI_Edge.cpp
index 03868875ba53de38688ae1abddfed3e399a942e7..9364605b9b1b95c6cc6862e8145285e6024ff76b 100644 (file)
@@ -403,6 +403,7 @@ void GeomAPI_Edge::intersectWithPlane(const std::shared_ptr<GeomAPI_Pln> thePlan
       GeomAPI_ExtremaCurveSurface anExtrema(aCurve, aPlane);
       double aTolerance = BRep_Tool::Tolerance(TopoDS::Edge(aShape));
       if (anExtrema.NbExtrema() > 0 &&
+          !anExtrema.Extrema().IsParallel() &&
           anExtrema.LowerDistance() < aTolerance) {
         // distance is lower than tolerance => tangent case
         gp_Pnt aPntC, aPntS;