From: eap Date: Fri, 16 Nov 2012 14:39:04 +0000 (+0000) Subject: 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes X-Git-Tag: V6_6_0rc1~38 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=7471a888d0c31bad517500a87380d115186c07c0 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes fix evaluation of max possible thickness on a disk --- diff --git a/src/StdMeshers/StdMeshers_ViscousLayers2D.cxx b/src/StdMeshers/StdMeshers_ViscousLayers2D.cxx index 884c41a80..0e2b7ec70 100644 --- a/src/StdMeshers/StdMeshers_ViscousLayers2D.cxx +++ b/src/StdMeshers/StdMeshers_ViscousLayers2D.cxx @@ -750,7 +750,8 @@ bool _ViscousBuilder2D::makePolyLines() _PolyLine& L1 = _polyLineVec[ iL1 ]; _SegmentTree::box_type boxL1 = * L1._segTree->getBox(); boxL1.Enlarge( boxTol ); - for ( size_t iL2 = iL1+1; iL2 < _polyLineVec.size(); ++iL2 ) + // consider case of a circle as well! + for ( size_t iL2 = iL1; iL2 < _polyLineVec.size(); ++iL2 ) { _PolyLine& L2 = _polyLineVec[ iL2 ]; _SegmentTree::box_type boxL2 = * L2._segTree->getBox();