From 4116123e649878cd1ade5157a4722c51ec06b7fd Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 3 Sep 2012 06:29:00 +0000 Subject: [PATCH] 0021823: [CEA 649] Compute failed without any errors Avoid reporting errors about EDGEs w/o mesh --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 0014788..e834c58 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -1904,12 +1904,11 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape) }; } - // SetIsAlwaysComputed( true ) to sub-meshes of degenerated EDGEs + // SetIsAlwaysComputed( true ) to sub-meshes of EDGEs w/o mesh 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 ); + if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( emap( i ))) + sm->SetIsAlwaysComputed( true ); for (int i = 1; i <= pmap.Extent(); i++) if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( pmap( i ))) if ( !sm->IsMeshComputed() ) -- 2.39.2