Holds data for octree to work on an edges subset. More...
Classes | |
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... | |
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.
References treeDataEdge::findNearestOp::findNearestOp().
ClassName | ( | "treeDataEdge" | ) |
|
inline |
Definition at line 169 of file treeDataEdge.H.
Referenced by refinementFeatures::findNearestRegionEdge(), and treeDataEdge::findNearestOp::operator()().
|
inline |
Definition at line 174 of file treeDataEdge.H.
Referenced by refinementFeatures::findNearestRegionEdge(), and treeDataEdge::findNearestOp::operator()().
|
inline |
Definition at line 179 of file treeDataEdge.H.
Referenced by treeDataEdge::findNearestOp::operator()().
|
inline |
Definition at line 184 of file treeDataEdge.H.
References treeDataEdge::getVolumeType(), treeDataEdge::overlaps(), treeDataEdge::shapePoints(), and List< T >::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.
References edge::centre(), forAll, and treeDataEdge::getVolumeType().
Referenced by treeDataEdge::size().
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 132 of file treeDataEdge.C.
References treeDataEdge::overlaps(), and volumeType::UNKNOWN.
Referenced by treeDataEdge::shapePoints(), and treeDataEdge::size().
bool overlaps | ( | const label | index, |
const treeBoundBox & | sampleBb | ||
) | const |
Does (bb of) shape at index overlap bb.
Definition at line 142 of file treeDataEdge.C.
References edge::end(), treeBoundBox::intersects(), and edge::start().
Referenced by treeDataEdge::getVolumeType(), and treeDataEdge::size().
Does (bb of) shape at index overlap bb.
Definition at line 159 of file treeDataEdge.C.
References PointHit< Point >::distance(), edge::line(), line< Point, PointRef >::nearestDist(), and Foam::sqr().