From 8fef24c1697ee2196f9c3aa818de440e47141dbb Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 10 Oct 2013 12:34:50 +0000 Subject: [PATCH] 22340: EDF 2748 SMESH : 2D viscous layer crash with BLSURF fix makeProxyFace() for a FACE with holes --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.39.2