37#ifndef treeDataPrimitivePatch_H
38#define treeDataPrimitivePatch_H
49template<
class Type>
class indexedOctree;
63template<
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
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Minimal example by using system/controlDict.functions:
Non-pointer based hierarchical recursive searching.
Standard boundBox with extra functionality for use in octree.
Encapsulation of data needed to search on PrimitivePatches.
volumeType getVolumeType(const indexedOctree< treeDataPrimitivePatch< PatchType > > &, const point &) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
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.
pointField shapePoints() const
An enumeration wrapper for classification of a location as being inside/outside of a volume.
#define TemplateName(TemplateNameString)
Add typeName information from argument TypeNameString to a.
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.