35 #ifndef treeDataPrimitivePatch_H 36 #define treeDataPrimitivePatch_H 47 template<
class Type>
class indexedOctree;
61 template<
class PatchType>
64 public treeDataPrimitivePatchName
69 const PatchType& patch_;
75 const scalar planarTol_;
106 scalar& nearestDistSqr,
141 point& intersectionPoint
167 point& intersectionPoint
193 point& intersectionPoint
205 const scalar planarTol
215 return patch_.size();
223 const PatchType&
patch()
const 251 const scalar radiusSqr
261 point& intersectionPoint
static bool findIntersection(const indexedOctree< treeDataPrimitivePatch< PatchType >> &tree, const label index, const point &start, const point &end, point &intersectionPoint)
Helper: find intersection of line with shapes.
A face is a list of labels corresponding to mesh vertices.
volumeType getVolumeType(const indexedOctree< treeDataPrimitivePatch< PatchType >> &, const point &) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
findNearestOp(const indexedOctree< treeDataPrimitivePatch > &tree)
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
Encapsulation of data needed to search on PrimitivePatches.
TemplateName(FvFaceCellWave)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.
pointField shapePoints() const
Get representative point cloud for all shapes inside.
const PatchType & patch() const
Return access to the underlying patch.
bool overlaps(const label index, const treeBoundBox &sampleBb) const
Does shape at index overlap bb.
Non-pointer based hierarchical recursive searching.
treeDataPrimitivePatch(const bool cacheBb, const PatchType &, const scalar planarTol)
Construct from patch.
Standard boundBox + extra functionality for use in octree.