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. More... | |
| treeDataEdge (const bool cacheBb, const edgeList &edges, const pointField &points, 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 |
| 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 56 of file treeDataEdge.H.
| treeDataEdge | ( | const bool | cacheBb, |
| const edgeList & | edges, | ||
| const pointField & | points, | ||
| const labelUList & | edgeLabels | ||
| ) |
Construct from selected edges.
Definition at line 68 of file treeDataEdge.C.
References update().
| treeDataEdge | ( | const bool | cacheBb, |
| const edgeList & | edges, | ||
| const pointField & | points, | ||
| labelList && | edgeLabels | ||
| ) |
Construct from selected edges, transferring contents.
Definition at line 85 of file treeDataEdge.C.
References update().
| ClassName | ( | "treeDataEdge" | ) |
|
inline |
Definition at line 173 of file treeDataEdge.H.
Referenced by refinementFeatures::findNearestRegionEdge(), and treeDataEdge::findNearestOp::operator()().
|
inline |
Definition at line 178 of file treeDataEdge.H.
Referenced by refinementFeatures::findNearestRegionEdge(), and treeDataEdge::findNearestOp::operator()().
|
inline |
Definition at line 183 of file treeDataEdge.H.
Referenced by refinementFeatures::findNearestEdge(), refinementFeatures::findNearestRegionEdge(), surfaceFeatures::nearestEdges(), and treeDataEdge::findNearestOp::operator()().
|
inline |
Definition at line 188 of file treeDataEdge.H.
Referenced by refinementFeatures::findNearestEdge().
| Foam::pointField shapePoints | ( | ) | const |
Representative point cloud for all shapes inside (one point per shape)
Definition at line 119 of file treeDataEdge.C.
References Foam::constant::electromagnetic::e, and forAll.
| 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 144 of file treeDataEdge.C.
References Foam::constant::electromagnetic::e, stdFoam::end(), and treeBoundBox::intersects().
Does (bb of) shape at index overlap bb.
Definition at line 161 of file treeDataEdge.C.
References PointHit< Point >::distance(), Foam::constant::electromagnetic::e, and Foam::sqr().