From: admin Date: Wed, 18 Feb 2009 15:56:01 +0000 (+0000) Subject: This commit was generated by cvs2git to create tag 'V0'. X-Git-Tag: V0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8718e783990cd0e2f65396fa2f82da18e81e1f9e;p=plugins%2Fblsurfplugin.git This commit was generated by cvs2git to create tag 'V0'. Sprout from V5_1_sizemap 2009-02-18 15:56:00 UTC gdd 'SIGSEGV corrected' Cherrypick from V5_1_sizemap 2009-02-18 13:32:33 UTC nge 'First version of SizeMap for BLSurf :': src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 6b91509..7678717 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -78,8 +78,13 @@ extern "C"{ #include -/* ================================== - * =========== PYTHON ============== +/* =========== PYTHON ============== + * + * + * On est trop des brutes ! + * + * + * * ==================================*/ typedef struct { @@ -669,10 +674,10 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape) cout << "End of Surface Mesh generation" << endl; cout << endl; - cout << "****************** U MIN: " << my_u_min << endl; - cout << "****************** V MIN: " << my_v_min << endl; - cout << "****************** U MAX: " << my_u_max << endl; - cout << "****************** V MAX: " << my_v_max << endl; + cout << "****************** U MIN: " << my_u_min << endl; + cout << "****************** V MIN: " << my_v_min << endl; + cout << "****************** U MAX: " << my_u_max << endl; + cout << "****************** V MAX: " << my_v_max << endl; mesh_t *msh; blsurf_data_get_mesh(bls, &msh); diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index 58e4a74..d22a941 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -357,10 +357,8 @@ std::string BLSURFPlugin_Hypothesis::GetSizeMapEntry(const std::string& entry) void BLSURFPlugin_Hypothesis::ClearEntry(const std::string& entry) { TSizeMap::iterator it = _sizeMap.find( entry ); - if ( it != _sizeMap.end() ) { + if ( it != _sizeMap.end() ) _sizeMap.erase(it); - NotifySubMeshesHypothesisModification(); - } else std::cout<<"No_Such_Entry"<