Go to the documentation of this file.
35 #ifndef treeDataFace_H
36 #define treeDataFace_H
42 #include "primitiveMesh.H"
109 scalar& nearestDistSqr,
142 point& intersectionPoint
void update()
Initialise all member data.
const bool cacheBb_
Whether to precalculate and store face bounding box.
Standard boundBox + extra functionality for use in octree.
volumeType getVolumeType(const indexedOctree< treeDataFace > &, const point &) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
static scalar tolSqr
Tolerance on linear dimensions.
const labelList & faceLabels() const
treeBoundBoxList bbs_
Face bounding boxes (valid only if cacheBb_)
const primitiveMesh & mesh() const
A simple container for copying or transferring objects of type <T>.
treeBoundBox calcBb(const label cellI) const
Calculate face bounding box.
PackedBoolList isTreeFace_
Inverse of faceLabels. For every mesh whether face is in faceLabels.
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.
A patch is a list of labels that address the faces in the global face list.
Non-pointer based hierarchical recursive searching.
const labelList faceLabels_
Subset of faces to work on.
const indexedOctree< treeDataFace > & tree_
const indexedOctree< treeDataFace > & tree_
treeDataFace(const bool cacheBb, const primitiveMesh &, const labelUList &)
Construct from mesh and subset of faces.
pointField shapePoints() const
Get representative point cloud for all shapes inside.
ClassName("treeDataFace")
bool overlaps(const label index, const treeBoundBox &sampleBb) const
Does (bb of) shape at index overlap bb.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Encapsulation of data needed to search for faces.
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.
void size(const label)
Override size to be inconsistent with allocated storage.
const primitiveMesh & mesh_
findNearestOp(const indexedOctree< treeDataFace > &tree)
findIntersectOp(const indexedOctree< treeDataFace > &tree)
Cell-face mesh analysis engine.