Salome HOME
0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
authoreap <eap@opencascade.com>
Fri, 16 Nov 2012 14:39:04 +0000 (14:39 +0000)
committereap <eap@opencascade.com>
Fri, 16 Nov 2012 14:39:04 +0000 (14:39 +0000)
   fix evaluation of max possible thickness on a disk

src/StdMeshers/StdMeshers_ViscousLayers2D.cxx

index 884c41a8015b774f32336455ef8763aaa63cb132..0e2b7ec708085d725e8cab4c5e1af78731e4e9e7 100644 (file)
@@ -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();