From 374031c17eaff49e84ed4d627f17e1d4c57a41e0 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 27 Jan 2021 16:48:04 +0300 Subject: [PATCH] bos #20640 EDF 22800 - Adding 3D --- src/SMESHUtils/SMESH_MeshAlgos.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SMESHUtils/SMESH_MeshAlgos.cxx b/src/SMESHUtils/SMESH_MeshAlgos.cxx index 3bc48ff24..7a4a0a481 100644 --- a/src/SMESHUtils/SMESH_MeshAlgos.cxx +++ b/src/SMESHUtils/SMESH_MeshAlgos.cxx @@ -688,6 +688,9 @@ bool SMESH_ElementSearcherImpl::getIntersParamOnLine(const gp_Lin& lin GC_MakeSegment edge( SMESH_TNodeXYZ( face->GetNode( i )), SMESH_TNodeXYZ( face->GetNode( (i+1)%nbNodes) )); anExtCC.Init( lineCurve, edge.Value() ); + if ( !anExtCC.Extrema().IsDone() || + anExtCC.Extrema().IsParallel() ) + continue; if ( anExtCC.NbExtrema() > 0 && anExtCC.LowerDistance() <= tol) { Standard_Real pl, pe; -- 2.39.2