Helper class to search on triSurface. More...
Public Member Functions | |
triSurfaceSearch (const triSurface &surface) | |
triSurfaceSearch (const triSurface &surface, const dictionary &dict) | |
triSurfaceSearch (const triSurface &surface, const scalar tolerance, const label maxTreeDepth=10) | |
~triSurfaceSearch () | |
void | clearOut () |
const indexedOctree< treeDataTriSurface > & | tree () const |
const triSurface & | surface () const |
scalar | tolerance () const |
label | maxTreeDepth () const |
boolList | calcInside (const pointField &searchPoints) const |
void | findNearest (const pointField &samples, const scalarField &nearestDistSqr, List< pointIndexHit > &info) const |
pointIndexHit | nearest (const point &pt, const vector &span) const |
void | findLine (const pointField &start, const pointField &end, List< pointIndexHit > &info) const |
void | findLineAny (const pointField &start, const pointField &end, List< pointIndexHit > &info) const |
void | findLineAll (const pointField &start, const pointField &end, List< List< pointIndexHit >> &info) const |
Helper class to search on triSurface.
Definition at line 54 of file triSurfaceSearch.H.
|
explicit |
Definition at line 129 of file triSurfaceSearch.C.
triSurfaceSearch | ( | const triSurface & | surface, |
const dictionary & | dict | ||
) |
Definition at line 139 of file triSurfaceSearch.C.
References dict, Foam::endl(), Foam::Info, and dictionary::readIfPresent().
triSurfaceSearch | ( | const triSurface & | surface, |
const scalar | tolerance, | ||
const label | maxTreeDepth = 10 |
||
) |
Definition at line 164 of file triSurfaceSearch.C.
References indexedOctree::perturbTol().
~triSurfaceSearch | ( | ) |
Definition at line 184 of file triSurfaceSearch.C.
void clearOut | ( | ) |
Definition at line 190 of file triSurfaceSearch.C.
Referenced by triSurfaceRegionSearch::clearOut().
const Foam::indexedOctree< Foam::treeDataTriSurface > & tree | ( | ) | const |
Definition at line 199 of file triSurfaceSearch.C.
References PatchTools::calcBounds(), Foam::constant::electromagnetic::e, Foam::endl(), treeBoundBox::extend(), boundBox::max(), boundBox::min(), nPoints, indexedOctree::perturbTol(), points, PrimitivePatch< FaceList, PointField >::points(), rndGen, VectorSpace< Vector< scalar >, scalar, 3 >::uniform(), WarningInFunction, and Foam::Zero.
|
inline |
Definition at line 125 of file triSurfaceSearch.H.
Referenced by edgeIntersections::removeDegenerates(), and surfaceIntersection::surfaceIntersection().
|
inline |
Definition at line 131 of file triSurfaceSearch.H.
|
inline |
Definition at line 137 of file triSurfaceSearch.H.
Foam::boolList calcInside | ( | const pointField & | searchPoints | ) | const |
Definition at line 255 of file triSurfaceSearch.C.
References forAll, volumeType::INSIDE, and samples().
void findNearest | ( | const pointField & | samples, |
const scalarField & | nearestDistSqr, | ||
List< pointIndexHit > & | info | ||
) | const |
Definition at line 283 of file triSurfaceSearch.C.
References forAll, indexedOctree::perturbTol(), samples(), and List::setSize().
Referenced by triSurfaceRegionSearch::findNearest(), and triSurfaceMesh::findNearest().
Foam::pointIndexHit nearest | ( | const point & | pt, |
const vector & | span | ||
) | const |
Definition at line 313 of file triSurfaceSearch.C.
References Foam::magSqr().
void findLine | ( | const pointField & | start, |
const pointField & | end, | ||
List< pointIndexHit > & | info | ||
) | const |
Definition at line 326 of file triSurfaceSearch.C.
References stdFoam::end(), forAll, indexedOctree::perturbTol(), and List::setSize().
Referenced by triSurfaceMesh::findLine(), and powerLawLopesdaCostaZone::powerLawLopesdaCostaZone().
void findLineAny | ( | const pointField & | start, |
const pointField & | end, | ||
List< pointIndexHit > & | info | ||
) | const |
Definition at line 349 of file triSurfaceSearch.C.
References stdFoam::end(), indexedOctree::findLineAny(), forAll, indexedOctree::perturbTol(), and List::setSize().
Referenced by triSurfaceMesh::findLineAny().
void findLineAll | ( | const pointField & | start, |
const pointField & | end, | ||
List< List< pointIndexHit >> & | info | ||
) | const |
Definition at line 372 of file triSurfaceSearch.C.
References DynamicList::append(), DynamicList::clear(), stdFoam::end(), forAll, PointIndexHit::hit(), PointIndexHit::index(), Foam::normalised(), indexedOctree::perturbTol(), List::setSize(), and List::transfer().
Referenced by triSurfaceMesh::findLineAll().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.