From: eap Date: Wed, 23 Apr 2014 11:23:50 +0000 (+0400) Subject: 22568: [CEA 1151] ConvertToQuadratic does not work if a face was not assigned with... X-Git-Tag: V7_4_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=52a6696881d2621bdd9d3f94462f70c213c9e54c;p=plugins%2Fblsurfplugin.git 22568: [CEA 1151] ConvertToQuadratic does not work if a face was not assigned with elements protect from MG-CADSurf BUG (but an edge is not added at all) --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 4e3e8bf..a2c44e7 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -2887,8 +2887,13 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh& aMesh, // the last of the two initial tags (else the output tag is out of emap and hasn't any meaning) mesh_get_composite_tag_definition(msh, tag, &nb_tag, tags_buff); if(nb_tag > 1) - tag=tags_buff[nb_tag-1]; - + tag=tags_buff[nb_tag-1]; + if ( tag > emap.Extent() ) + { + std::cerr << "MG-CADSurf BUG:::: Edge tag " << tag + << " more than nb CAD egdes (" << emap.Extent() << ")" << std::endl; + continue; + } if (tags[vtx[0]]) { Set_NodeOnEdge(meshDS, nodes[vtx[0]], emap(tag)); tags[vtx[0]] = false;