Go to the documentation of this file.
37 #ifndef treeDataPrimitivePatch_H
38 #define treeDataPrimitivePatch_H
49 template<
class Type>
class indexedOctree;
63 template<
class PatchType>
66 public treeDataPrimitivePatchName
71 const PatchType& patch_;
77 const scalar planarTol_;
105 scalar& nearestDistSqr,
140 point& intersectionPoint
166 point& intersectionPoint
192 point& intersectionPoint
204 const scalar planarTol
214 return patch_.size();
222 const PatchType&
patch()
const
250 const scalar radiusSqr
260 point& intersectionPoint
volumeType getVolumeType(const indexedOctree< treeDataPrimitivePatch< PatchType >> &, const point &) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
findIntersectOp(const indexedOctree< treeDataPrimitivePatch > &tree)
const PatchType & patch() const
Return access to the underlying patch.
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.
Standard boundBox with extra functionality for use in octree.
bool overlaps(const label index, const treeBoundBox &sampleBb) const
Does shape at index overlap bb.
findAllIntersectOp(const indexedOctree< treeDataPrimitivePatch > &tree, DynamicList< label > &shapeMask)
An enumeration wrapper for classification of a location as being inside/outside of a volume.
Non-pointer based hierarchical recursive searching.
TemplateName(blendedSchemeBase)
pointField shapePoints() const
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
treeDataPrimitivePatch(const bool cacheBb, const PatchType &, const scalar planarTol)
Construct from patch.
findNearestOp(const indexedOctree< treeDataPrimitivePatch > &tree)
Encapsulation of data needed to search on PrimitivePatches.
findSelfIntersectOp(const indexedOctree< treeDataPrimitivePatch > &tree, const label edgeID)
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.
Minimal example by using system/controlDict.functions: