From 4576a39f364a8518b8e186c6032c573bf5657ab6 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 28 Apr 2010 09:19:46 +0000 Subject: [PATCH] 0020682: EDF 1222 SMESH: 3D mesh from a skin mesh and with volumic cells * Restore the lost fix: if(faces==0) - return error( COMPERR_BAD_INPUT_MESH, - SMESH_Comment("No triangles in adaptor for element ")<GetID()); + continue; // Issue 0020682. There already can be 3d mesh --- src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx index a174a46..cdee329 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx @@ -443,8 +443,7 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh, // using adaptor const list* faces = Adaptor.GetTriangles(elem); if(faces==0) - return error( COMPERR_BAD_INPUT_MESH, - SMESH_Comment("No triangles in adaptor for element ")<GetID()); + continue; // Issue 0020682. There already can be 3d mesh trias.assign( faces->begin(), faces->end() ); } else { -- 2.30.2