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
176 const label edgeIndex_;
193 point& intersectionPoint
205 const scalar planarTol
215 return patch_.size();
223 const PatchType&
patch()
const
251 const scalar radiusSqr
261 point& intersectionPoint
A face is a list of labels corresponding to mesh vertices.
Non-pointer based hierarchical recursive searching.
Standard boundBox + extra functionality for use in octree.
findAllIntersectOp(const indexedOctree< treeDataPrimitivePatch > &tree, DynamicList< label > &shapeMask)
findIntersectOp(const indexedOctree< treeDataPrimitivePatch > &tree)
findNearestOp(const indexedOctree< treeDataPrimitivePatch > &tree)
findSelfIntersectOp(const indexedOctree< treeDataPrimitivePatch > &tree, const label edgeID)
Encapsulation of data needed to search on PrimitivePatches.
bool overlaps(const label index, const treeBoundBox &sampleBb) const
Does shape at index overlap bb.
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.
const PatchType & patch() const
Return access to the underlying patch.
treeDataPrimitivePatch(const bool cacheBb, const PatchType &, const scalar planarTol)
Construct from patch.
volumeType getVolumeType(const indexedOctree< treeDataPrimitivePatch< PatchType >> &, const point &) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
pointField shapePoints() const
Get representative point cloud for all shapes inside.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
TemplateName(FvFaceCellWave)
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.