From 7f903b7239184210aee2fcc1828bfd87f14894e5 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 9 Nov 2012 16:42:44 +0000 Subject: [PATCH] ENH: triSurfaceMesh: access to tolerance --- src/meshTools/searchableSurface/triSurfaceMesh.C | 6 ++++++ src/meshTools/searchableSurface/triSurfaceMesh.H | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/meshTools/searchableSurface/triSurfaceMesh.C b/src/meshTools/searchableSurface/triSurfaceMesh.C index 86fcd5889b..2508cdb919 100644 --- a/src/meshTools/searchableSurface/triSurfaceMesh.C +++ b/src/meshTools/searchableSurface/triSurfaceMesh.C @@ -625,6 +625,12 @@ Foam::triSurfaceMesh::edgeTree() const } +Foam::scalar Foam::triSurfaceMesh::tolerance() const +{ + return tolerance_; +} + + const Foam::wordList& Foam::triSurfaceMesh::regions() const { if (regions_.empty()) diff --git a/src/meshTools/searchableSurface/triSurfaceMesh.H b/src/meshTools/searchableSurface/triSurfaceMesh.H index a1d0378487..aa462e2554 100644 --- a/src/meshTools/searchableSurface/triSurfaceMesh.H +++ b/src/meshTools/searchableSurface/triSurfaceMesh.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -182,6 +182,7 @@ public: //- Demand driven contruction of octree for boundary edges const indexedOctree& edgeTree() const; + scalar tolerance() const; // searchableSurface implementation