From: fps Date: Fri, 18 Nov 2011 15:45:10 +0000 (+0000) Subject: Abu : Diagnostics avant maillage X-Git-Tag: V6_5_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e025b9bb41ebc49d31dd51204ce43126facc112f;p=plugins%2Fhexablockplugin.git Abu : Diagnostics avant maillage --- diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.cxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.cxx index c4ee40f..62aec92 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.cxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.cxx @@ -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"))); } diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.hxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.hxx index 5a407b6..61b1dc0 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.hxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.hxx @@ -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