X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_ViscousLayers.cxx;h=1e8d0f2cc0847263f5f5b125d945a0ff2ce6eeaa;hp=8167f864a2b4098759020098080ea1fccfe34517;hb=7eda9ca931ed2a11cb5e4637e4ffe19f5c061115;hpb=b8fd583be521c12587f81b616251ecd7d1a16994 diff --git a/src/StdMeshers/StdMeshers_ViscousLayers.cxx b/src/StdMeshers/StdMeshers_ViscousLayers.cxx index 8167f864a..1e8d0f2cc 100644 --- a/src/StdMeshers/StdMeshers_ViscousLayers.cxx +++ b/src/StdMeshers/StdMeshers_ViscousLayers.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -3791,7 +3791,9 @@ bool _ViscousBuilder::smoothAndCheck(_SolidData& data, for ( int iS = 0; iS < data._edgesOnShape.size(); ++iS ) { _EdgesOnShape& eos = data._edgesOnShape[ iS ]; - if ( !eos._toSmooth || eos.ShapeType() != shapeType ) + if ( !eos._toSmooth || + eos.ShapeType() != shapeType || + eos._edges.empty() ) continue; // already smoothed?