From c75a2080c932a88394e1c26291eb11b1ab64d9d1 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 15 Jun 2007 09:02:47 +0000 Subject: [PATCH] NPAL16182 ("Propagation on opposite edges" don't work with 5 edges quadrangle) + static bool IsContinuous(const TopoDS_Edge & E1, const TopoDS_Edge & E2) { --- src/SMESH/SMESH_Algo.hxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/SMESH/SMESH_Algo.hxx b/src/SMESH/SMESH_Algo.hxx index d2cde332e..705e95c00 100644 --- a/src/SMESH/SMESH_Algo.hxx +++ b/src/SMESH/SMESH_Algo.hxx @@ -258,8 +258,14 @@ public: * \param E2 - the 2nd edge * \retval GeomAbs_Shape - regularity at the junction between E1 and E2 */ - static GeomAbs_Shape Continuity(const TopoDS_Edge & E1, - const TopoDS_Edge & E2); + static GeomAbs_Shape Continuity(const TopoDS_Edge & E1, const TopoDS_Edge & E2); + + /*! + * \brief Return true if an edge can be considered as a continuation of another + */ + static bool IsContinuous(const TopoDS_Edge & E1, const TopoDS_Edge & E2) { + return ( Continuity( E1, E2 ) >= GeomAbs_G1 ); + } /*! * \brief Return the node built on a vertex -- 2.39.2