From: eap Date: Thu, 10 Oct 2013 12:34:50 +0000 (+0000) Subject: 22340: EDF 2748 SMESH : 2D viscous layer crash with BLSURF X-Git-Tag: V7_3_0a1~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8fef24c1697ee2196f9c3aa818de440e47141dbb;p=plugins%2Fblsurfplugin.git 22340: EDF 2748 SMESH : 2D viscous layer crash with BLSURF fix makeProxyFace() for a FACE with holes --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index f2157fb..f3a7dae 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -1736,13 +1736,14 @@ namespace continue; BRepBuilderAPI_MakePolygon wire; + const size_t i0 = tmpVertex.size(); for ( size_t iN = 1; iN < wirePoints.size(); ++iN ) { wire.Add( SMESH_TNodeXYZ( wirePoints[ iN ].node )); origNodes.push_back( wirePoints[ iN ].node ); tmpVertex.push_back( wire.LastVertex() ); } - tmpVertex[0] = wire.FirstVertex(); + tmpVertex[ i0 ] = wire.FirstVertex(); // wire.LastVertex()==NULL for 1 vertex in wire wire.Close(); if ( !wire.IsDone() ) throw SALOME_Exception("BLSURFPlugin_BLSURF: BRepBuilderAPI_MakePolygon failed");