From: eap Date: Wed, 29 Dec 2010 12:15:10 +0000 (+0000) Subject: 0021116: [CEA] non regression test fails X-Git-Tag: Geodesic_attractor_20110218~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7c522e35476b7de1c68be3f5f4080a072f88ee87;p=plugins%2Fblsurfplugin.git 0021116: [CEA] non regression test fails make sub-meshes of degenerated EDGE's be "always computed" --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index dcc193b..b2df4ad 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -874,7 +874,7 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape) // }; // Fix problem with locales - Kernel_Utils::Localizer loc; + Kernel_Utils::Localizer aLocalizer; /* create a distene context (generic object) */ status_t status = STATUS_ERROR; @@ -1427,6 +1427,13 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape) }; } + // SetIsAlwaysComputed( true ) to sub-meshes of degenerated EDGEs + TopLoc_Location loc; double f,l; + for (int i = 1; i <= emap.Extent(); i++) + if ( BRep_Tool::Curve(TopoDS::Edge( emap( i )), loc, f,l).IsNull() ) + if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( emap( i ))) + sm->SetIsAlwaysComputed( true ); + delete nodes; /* release the mesh object */