Holds data for octree to work on an edges subset. More...
Data Structures | |
class | findIntersectOp |
class | findNearestOp |
Public Member Functions | |
ClassName ("treeDataEdge") | |
treeDataEdge (const bool cacheBb, const edgeList &edges, const pointField &points, const labelUList &edgeLabels) | |
Construct from selected edges. !Holds references to edges and points. More... | |
treeDataEdge (const bool cacheBb, const edgeList &edges, const pointField &points, const Xfer< labelList > &edgeLabels) | |
Construct from selected edges, transferring contents. More... | |
const edgeList & | edges () const |
const pointField & | points () const |
const labelList & | edgeLabels () const |
label | size () const |
pointField | shapePoints () const |
Get representative point cloud for all shapes inside. More... | |
volumeType | getVolumeType (const indexedOctree< treeDataEdge > &, const point &) const |
Get type (inside,outside,mixed,unknown) of point w.r.t. surface. More... | |
bool | overlaps (const label index, const treeBoundBox &sampleBb) const |
Does (bb of) shape at index overlap bb. More... | |
bool | overlaps (const label index, const point ¢re, const scalar radiusSqr) const |
Does (bb of) shape at index overlap bb. More... | |
Private Member Functions | |
treeBoundBox | calcBb (const label edgeI) const |
Calculate edge bounding box. More... | |
void | update () |
Initialise all member data. More... | |
Private Attributes | |
const edgeList & | edges_ |
Reference to edgeList. More... | |
const pointField & | points_ |
Reference to points. More... | |
const labelList | edgeLabels_ |
Labels of edges. More... | |
const bool | cacheBb_ |
Whether to precalculate and store face bounding box. More... | |
treeBoundBoxList | bbs_ |
Bbs for all above edges (valid only if cacheBb_) More... | |
Static Private Attributes | |
static scalar | tol |
Tolerance on linear dimensions. More... | |
Holds data for octree to work on an edges subset.
Definition at line 53 of file treeDataEdge.H.
treeDataEdge | ( | const bool | cacheBb, |
const edgeList & | edges, | ||
const pointField & | points, | ||
const labelUList & | edgeLabels | ||
) |
Construct from selected edges. !Holds references to edges and points.
Definition at line 66 of file treeDataEdge.C.
treeDataEdge | ( | const bool | cacheBb, |
const edgeList & | edges, | ||
const pointField & | points, | ||
const Xfer< labelList > & | edgeLabels | ||
) |
Construct from selected edges, transferring contents.
!Holds references to edges and points
Definition at line 83 of file treeDataEdge.C.
|
private |
Calculate edge bounding box.
Definition at line 39 of file treeDataEdge.C.
References Foam::e, treeDataEdge::edges_, Foam::max(), Foam::min(), and treeDataEdge::points_.
|
private |
ClassName | ( | "treeDataEdge" | ) |
|
inline |
Definition at line 169 of file treeDataEdge.H.
References treeDataEdge::edges_.
Referenced by refinementFeatures::findNearestEdge(), refinementFeatures::findNearestRegionEdge(), and treeDataEdge::findNearestOp::operator()().
|
inline |
Definition at line 174 of file treeDataEdge.H.
References treeDataEdge::points_.
Referenced by refinementFeatures::findNearestEdge(), refinementFeatures::findNearestRegionEdge(), and treeDataEdge::findNearestOp::operator()().
|
inline |
Definition at line 179 of file treeDataEdge.H.
References treeDataEdge::edgeLabels_.
Referenced by treeDataEdge::findNearestOp::operator()().
|
inline |
Definition at line 184 of file treeDataEdge.H.
References treeDataEdge::edgeLabels_, and List::size().
Foam::pointField shapePoints | ( | ) | const |
Get representative point cloud for all shapes inside.
(one point per shape)
Definition at line 117 of file treeDataEdge.C.
Foam::volumeType getVolumeType | ( | const indexedOctree< treeDataEdge > & | oc, |
const point & | sample | ||
) | const |
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
Only makes sense for closed surfaces.
Definition at line 134 of file treeDataEdge.C.
References volumeType::UNKNOWN.
bool overlaps | ( | const label | index, |
const treeBoundBox & | sampleBb | ||
) | const |
Does (bb of) shape at index overlap bb.
Definition at line 145 of file treeDataEdge.C.
References Foam::e, intersect(), and treeBoundBox::intersects().
Does (bb of) shape at index overlap bb.
Definition at line 163 of file treeDataEdge.C.
References PointHit::distance(), Foam::e, and Foam::sqr().
|
staticprivate |
Tolerance on linear dimensions.
Definition at line 58 of file treeDataEdge.H.
|
private |
Reference to edgeList.
Definition at line 64 of file treeDataEdge.H.
Referenced by treeDataEdge::calcBb(), and treeDataEdge::edges().
|
private |
Reference to points.
Definition at line 67 of file treeDataEdge.H.
Referenced by treeDataEdge::calcBb(), and treeDataEdge::points().
|
private |
Labels of edges.
Definition at line 70 of file treeDataEdge.H.
Referenced by treeDataEdge::edgeLabels(), and treeDataEdge::size().
|
private |
Whether to precalculate and store face bounding box.
Definition at line 73 of file treeDataEdge.H.
|
private |
Bbs for all above edges (valid only if cacheBb_)
Definition at line 76 of file treeDataEdge.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.