diff --git a/src/meshTools/searchableSurface/triSurfaceMesh.C b/src/meshTools/searchableSurface/triSurfaceMesh.C index deb92ee00f..c3c7c69b34 100644 --- a/src/meshTools/searchableSurface/triSurfaceMesh.C +++ b/src/meshTools/searchableSurface/triSurfaceMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -573,6 +573,9 @@ const Foam::indexedOctree& bb.min() -= point(ROOTVSMALL, ROOTVSMALL, ROOTVSMALL); bb.max() += point(ROOTVSMALL, ROOTVSMALL, ROOTVSMALL); + scalar oldTol = indexedOctree::perturbTol(); + indexedOctree::perturbTol() = tolerance_; + edgeTree_.reset ( new indexedOctree @@ -590,6 +593,8 @@ const Foam::indexedOctree& 3.0 // duplicity ) ); + + indexedOctree::perturbTol() = oldTol; } return edgeTree_(); }