From 7c522e35476b7de1c68be3f5f4080a072f88ee87 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 29 Dec 2010 12:15:10 +0000 Subject: [PATCH] 0021116: [CEA] non regression test fails make sub-meshes of degenerated EDGE's be "always computed" --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 */ -- 2.39.2