]> SALOME platform Git repositories - plugins/hexablockplugin.git/commitdiff
Salome HOME
Abu : Diagnostics avant maillage
authorfps <fps@opencascade.com>
Fri, 18 Nov 2011 15:45:10 +0000 (15:45 +0000)
committerfps <fps@opencascade.com>
Fri, 18 Nov 2011 15:45:10 +0000 (15:45 +0000)
src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.cxx
src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.hxx

index c4ee40fca12610d08297c5c4a7dc0939bdeaf864..62aec92fa6ba860334b0b3d8406820fc0b39c187 100755 (executable)
@@ -306,7 +306,8 @@ bool SMESH_HexaBlocks::computeEdgeByAssoc( HEXA_NS::Edge& edge, HEXA_NS::Law& la
       myCurve_length,
       myCurve_lengths,
       myCurve_ways,
-      myCurve_starts
+      myCurve_starts,
+      edge
   );
 
 
@@ -1256,7 +1257,8 @@ void SMESH_HexaBlocks::_buildMyCurve(
     double&                                    myCurve_length, //INOUT
     std::map< BRepAdaptor_Curve*, double>&     myCurve_lengths,//INOUT
     std::map< BRepAdaptor_Curve*, bool>&       myCurve_ways,   //INOUT
-    std::map< BRepAdaptor_Curve*, double>&      myCurve_starts )  //INOUT
+    std::map< BRepAdaptor_Curve*, double>&      myCurve_starts,   //INOUT
+    HEXA_NS::Edge&                             edge) // For error diagnostic
 {
     if(MYDEBUG) MESSAGE("_buildMyCurve() : : begin   <<<<<<");
     bool myCurve_way  = true;
@@ -1339,6 +1341,7 @@ void SMESH_HexaBlocks::_buildMyCurve(
                 } else {
                     if(MYDEBUG) MESSAGE("SOMETHING WRONG on edge association... Bad script?");
 //                     ASSERT(false);
+                    edge.dumpAsso();
                     throw (SALOME_Exception(LOCALIZED("Edge association : check association parameters ( first, last ) between HEXA model and CAO")));
                 }
 
index 5a407b6978e8874909a57d6fcbd7a3e00e4e9c9a..61b1dc07fa325077b52497ca83269ae41362475d 100755 (executable)
@@ -140,7 +140,8 @@ private:
       double&                                  myCurve_length, //INOUT
       std::map< BRepAdaptor_Curve*, double>&   myCurve_lengths,//INOUT
       std::map< BRepAdaptor_Curve*, bool>&     myCurve_ways,   //INOUT
-      std::map< BRepAdaptor_Curve*, double>&    myCurve_starts ); //INOUT
+      std::map< BRepAdaptor_Curve*, double>&    myCurve_starts,   //INOUT
+      HEXA_NS::Edge&                            edge);  // For diagnostic
 
   gp_Pnt _getPtOnMyCurve( 
       const double&                           myCurve_u,      //IN