Go to the documentation of this file.
35 #ifndef treeDataEdge_H
36 #define treeDataEdge_H
48 template<
class Type>
class indexedOctree;
104 scalar& nearestDistSqr,
135 point& intersectionPoint
217 const scalar radiusSqr
findNearestOp(const indexedOctree< treeDataEdge > &tree)
volumeType getVolumeType(const indexedOctree< treeDataEdge > &, const point &) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
const edgeList & edges_
Reference to edgeList.
const pointField & points_
Reference to points.
treeDataEdge(const bool cacheBb, const edgeList &edges, const pointField &points, const labelUList &edgeLabels)
Construct from selected edges. !Holds references to edges and points.
Standard boundBox + extra functionality for use in octree.
static scalar tol
Tolerance on linear dimensions.
A simple container for copying or transferring objects of type <T>.
bool overlaps(const label index, const treeBoundBox &sampleBb) const
Does (bb of) shape at index overlap bb.
findIntersectOp(const indexedOctree< treeDataEdge > &tree)
const indexedOctree< treeDataEdge > & tree_
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.
const edgeList & edges() const
Non-pointer based hierarchical recursive searching.
Holds data for octree to work on an edges subset.
treeBoundBoxList bbs_
Bbs for all above edges (valid only if cacheBb_)
const pointField & points() const
void update()
Initialise all member data.
pointField shapePoints() const
Get representative point cloud for all shapes inside.
ClassName("treeDataEdge")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const labelList & edgeLabels() const
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.
treeBoundBox calcBb(const label edgeI) const
Calculate edge bounding box.
void size(const label)
Override size to be inconsistent with allocated storage.
const labelList edgeLabels_
Labels of edges.
const bool cacheBb_
Whether to precalculate and store face bounding box.