Salome HOME
NPAL16182 ("Propagation on opposite edges" don't work with 5 edges quadrangle)
authoreap <eap@opencascade.com>
Fri, 15 Jun 2007 09:02:47 +0000 (09:02 +0000)
committereap <eap@opencascade.com>
Fri, 15 Jun 2007 09:02:47 +0000 (09:02 +0000)
+  static bool IsContinuous(const TopoDS_Edge & E1, const TopoDS_Edge & E2) {

src/SMESH/SMESH_Algo.hxx

index d2cde332ee7f5358b14b5b08e86c99fbaa40ace2..705e95c00495ca22f030fc4a65767e5104cdfeed 100644 (file)
@@ -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