ENH: setter/getter for octree permutation tolerance

- make template invariant
This commit is contained in:
Mark Olesen
2022-10-13 16:05:25 +02:00
committed by Andrew Heather
parent 3d7dc6a870
commit b8d01a88ea
8 changed files with 50 additions and 78 deletions

View File

@ -31,11 +31,6 @@ License
#include "OFstream.H"
#include "ListOps.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template<class Type>
Foam::scalar Foam::dynamicIndexedOctree<Type>::perturbTol_ = 10*SMALL;
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template<class Type>
@ -2046,13 +2041,6 @@ Foam::dynamicIndexedOctree<Type>::dynamicIndexedOctree
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
Foam::scalar& Foam::dynamicIndexedOctree<Type>::perturbTol()
{
return perturbTol_;
}
template<class Type>
Foam::pointIndexHit Foam::dynamicIndexedOctree<Type>::findNearest
(

View File

@ -89,15 +89,6 @@ class dynamicIndexedOctree
:
public dynamicIndexedOctreeBase
{
// Static data
//- Relative perturbation tolerance. Determines when point is
// considered to be close to face/edge of bb of node.
// The tolerance is relative to the bounding box of the smallest
// node.
static scalar perturbTol_;
// Private Data
//- Underlying shapes for geometric queries.
@ -333,10 +324,6 @@ class dynamicIndexedOctree
public:
//- Get the perturbation tolerance
static scalar& perturbTol();
// Constructors
//- Construct from shapes