From 7471a888d0c31bad517500a87380d115186c07c0 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 16 Nov 2012 14:39:04 +0000 Subject: [PATCH] 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes fix evaluation of max possible thickness on a disk --- src/StdMeshers/StdMeshers_ViscousLayers2D.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.2