Go to the documentation of this file.
35 #ifndef triSurfaceSearch_H
36 #define triSurfaceSearch_H
42 #include "treeDataTriSurface.H"
pointIndexHit nearest(const point &, const vector &span) const
Calculate nearest point on surface for single searchPoint. Returns.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
triSurfaceSearch(const triSurfaceSearch &)
Disallow default bitwise copy construct.
void findNearest(const pointField &samples, const scalarField &nearestDistSqr, List< pointIndexHit > &info) const
label maxTreeDepth() const
Return max tree depth of octree.
void findLineAll(const pointField &start, const pointField &end, List< List< pointIndexHit > > &info) const
Calculate all intersections from start to end.
Helper class to search on triSurface.
autoPtr< indexedOctree< treeDataTriSurface > > treePtr_
Octree for searches.
const triSurface & surface_
Reference to surface to work on.
scalarField samples(nIntervals, 0)
scalar tolerance() const
Return tolerance to use in searches.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
Triangulated surface description with patch information.
const indexedOctree< treeDataTriSurface > & tree() const
Demand driven construction of the octree.
~triSurfaceSearch()
Destructor.
Non-pointer based hierarchical recursive searching.
void clearOut()
Clear storage.
scalar tolerance_
Optional tolerance to use in searches.
A list of keyword definitions, which are a keyword followed by any number of values (e....
label maxTreeDepth_
Optional max tree depth of octree.
boolList calcInside(const pointField &searchPoints) const
Calculate for each searchPoint inside/outside status.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void findLine(const pointField &start, const pointField &end, List< pointIndexHit > &info) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const triSurface & surface() const
Return reference to the surface.
void findLineAny(const pointField &start, const pointField &end, List< pointIndexHit > &info) const
bool checkUniqueHit(const pointIndexHit &currHit, const DynamicList< pointIndexHit, 1, 1 > &hits, const vector &lineVec) const
Check whether the current hit on the surface which lies on lineVec.
void operator=(const triSurfaceSearch &)
Disallow default bitwise assignment.