treeDataEdge Class Reference

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 edgeListedges () const
 
const pointFieldpoints () const
 
const labelListedgeLabels () 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 &centre, const scalar radiusSqr) const
 Does (bb of) shape at index overlap bb. More...
 

Detailed Description

Holds data for octree to work on an edges subset.

Source files

Definition at line 56 of file treeDataEdge.H.

Constructor & Destructor Documentation

◆ treeDataEdge() [1/2]

treeDataEdge ( const bool  cacheBb,
const edgeList edges,
const pointField points,
const labelUList edgeLabels 
)

Construct from selected edges.

Note
Holds references to edges and points!

Definition at line 67 of file treeDataEdge.C.

◆ treeDataEdge() [2/2]

treeDataEdge ( const bool  cacheBb,
const edgeList edges,
const pointField points,
labelList &&  edgeLabels 
)

Construct from selected edges, transferring contents.

Note
Holds references to edges and points!

Definition at line 84 of file treeDataEdge.C.

Member Function Documentation

◆ ClassName()

ClassName ( "treeDataEdge"  )

◆ edges()

const edgeList & edges ( ) const
inline

Definition at line 173 of file treeDataEdge.H.

Referenced by refinementFeatures::findNearestEdge(), refinementFeatures::findNearestRegionEdge(), and treeDataEdge::findNearestOp::operator()().

Here is the caller graph for this function:

◆ points()

const pointField & points ( ) const
inline

Definition at line 178 of file treeDataEdge.H.

Referenced by refinementFeatures::findNearestEdge(), refinementFeatures::findNearestRegionEdge(), and treeDataEdge::findNearestOp::operator()().

Here is the caller graph for this function:

◆ edgeLabels()

const labelList & edgeLabels ( ) const
inline

Definition at line 183 of file treeDataEdge.H.

Referenced by treeDataEdge::findNearestOp::operator()().

Here is the caller graph for this function:

◆ size()

label size ( ) const
inline

Definition at line 188 of file treeDataEdge.H.

References UList< T >::size().

Here is the call graph for this function:

◆ shapePoints()

Foam::pointField shapePoints ( ) const

Representative point cloud for all shapes inside (one point per shape)

Definition at line 119 of file treeDataEdge.C.

References e, forAll, and UList< T >::size().

Here is the call graph for this function:

◆ getVolumeType()

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 133 of file treeDataEdge.C.

References volumeType::UNKNOWN.

◆ overlaps() [1/2]

bool overlaps ( const label  index,
const treeBoundBox sampleBb 
) const

Does (bb of) shape at index overlap bb.

Definition at line 143 of file treeDataEdge.C.

References e, UList< T >::end(), and treeBoundBox::intersects().

Here is the call graph for this function:

◆ overlaps() [2/2]

bool overlaps ( const label  index,
const point centre,
const scalar  radiusSqr 
) const

Does (bb of) shape at index overlap bb.

Definition at line 160 of file treeDataEdge.C.

References PointHit< PointType >::distance(), e, and Foam::sqr().

Here is the call graph for this function:

The documentation for this class was generated from the following files: