From: eap Date: Fri, 15 Jun 2007 09:02:47 +0000 (+0000) Subject: NPAL16182 ("Propagation on opposite edges" don't work with 5 edges quadrangle) X-Git-Tag: V3_2_7~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c75a2080c932a88394e1c26291eb11b1ab64d9d1;p=modules%2Fsmesh.git NPAL16182 ("Propagation on opposite edges" don't work with 5 edges quadrangle) + static bool IsContinuous(const TopoDS_Edge & E1, const TopoDS_Edge & E2) { --- 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