Helper class to search on triSurface. Creates an octree for each region of the surface and only searches on the specified regions. More...
Helper class to search on triSurface. Creates an octree for each region of the surface and only searches on the specified regions.
Definition at line 54 of file triSurfaceRegionSearch.H.
|
explicit |
Definition at line 29 of file triSurfaceRegionSearch.C.
triSurfaceRegionSearch | ( | const triSurface & | surface, |
const dictionary & | dict | ||
) |
Definition at line 38 of file triSurfaceRegionSearch.C.
Definition at line 51 of file triSurfaceRegionSearch.C.
void clearOut | ( | ) |
Definition at line 57 of file triSurfaceRegionSearch.C.
References triSurfaceSearch::clearOut().
Referenced by triSurfaceMesh::clearOut(), and triSurfaceMesh::movePoints().
const Foam::PtrList< Foam::triSurfaceRegionSearch::treeType > & treeByRegion | ( | ) | const |
Definition at line 67 of file triSurfaceRegionSearch.C.
References PatchTools::calcBounds(), Foam::constant::electromagnetic::e, treeBoundBox::extend(), forAll, boundBox::max(), Foam::max(), boundBox::min(), nPoints, points, rndGen, List::setSize(), VectorSpace< Vector< scalar >, scalar, 3 >::uniform(), and Foam::Zero.
void findNearest | ( | const pointField & | samples, |
const scalarField & | nearestDistSqr, | ||
const labelList & | regionIndices, | ||
List< pointIndexHit > & | info | ||
) | const |
Definition at line 184 of file triSurfaceRegionSearch.C.
References triSurfaceSearch::findNearest(), forAll, PointIndexHit::hit(), PointIndexHit::hitPoint(), Foam::magSqr(), samples(), and List::setSize().
Referenced by triSurfaceMesh::findNearest().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.