From ece5257643d986e657fa80d97011fc5ab0953e9b Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 15 Jun 2007 09:09:54 +0000 Subject: [PATCH] NPAL16182 ("Propagation on opposite edges" don't work with 5 edges quadrangle) - GeomAbs_Shape cont = SMESH_Algo::Continuity( edge, eNext ); - if (cont >= GeomAbs_G1) { + if ( SMESH_Algo::IsContinuous( edge, eNext )) { --- src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx | 3 +-- src/StdMeshers/StdMeshers_Quadrangle_2D.cxx | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx b/src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx index 1820f6fe3..c60cbee61 100644 --- a/src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx +++ b/src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx @@ -91,8 +91,7 @@ namespace { eNext = TopoDS::Edge( ancestor ); } if ( edgeCounter.Extent() < 3 && !eNext.IsNull() ) { - GeomAbs_Shape cont = SMESH_Algo::Continuity( edge, eNext ); - if (cont >= GeomAbs_G1) { + if ( SMESH_Algo::IsContinuous( edge, eNext )) { // care of orientation bool reverse; if ( forward ) diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index f35fabb73..bf2f614da 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -595,16 +595,14 @@ FaceQuadStruct* StdMeshers_Quadrangle_2D::CheckNbEdges(SMESH_Mesh & aMes sideEdges.splice( sideEdges.end(), edges, edges.begin()); // edges.front() -> sideEdges.end() bool sameSide = true; while ( !edges.empty() && sameSide ) { - GeomAbs_Shape cont = SMESH_Algo::Continuity( sideEdges.back(), edges.front() ); - sameSide = ( cont >= GeomAbs_G1 ); + sameSide = SMESH_Algo::IsContinuous( sideEdges.back(), edges.front() ); if ( sameSide ) sideEdges.splice( sideEdges.end(), edges, edges.begin()); } if ( nbSides == 0 ) { // go backward from the first edge sameSide = true; while ( !edges.empty() && sameSide ) { - GeomAbs_Shape cont = SMESH_Algo::Continuity( sideEdges.front(), edges.back() ); - sameSide = ( cont >= GeomAbs_G1 ); + sameSide = SMESH_Algo::IsContinuous( sideEdges.front(), edges.back() ); if ( sameSide ) sideEdges.splice( sideEdges.begin(), edges, --edges.end()); } -- 2.39.2