Holds (reference to) pointField. Encapsulation of data needed for octree searches. Used for searching for nearest point. No bounding boxes around points. Only overlaps and calcNearest are implemented, rest makes little sense. More...
Classes  
class  findIntersectOp 
class  findNearestOp 
Public Member Functions  
ClassName ("treeDataPoint")  
treeDataPoint (const pointField &)  
Construct from pointField. Holds reference! More...  
treeDataPoint (const pointField &, const labelList &)  
Construct from subset of pointField. Holds reference! More...  
label  size () const 
const labelList &  pointLabels () const 
const pointField &  points () const 
bool  useSubset () const 
pointField  shapePoints () const 
Get representative point cloud for all shapes inside. More...  
volumeType  getVolumeType (const indexedOctree< treeDataPoint > &, 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 shape at index overlap the sphere. More...  
Holds (reference to) pointField. Encapsulation of data needed for octree searches. Used for searching for nearest point. No bounding boxes around points. Only overlaps and calcNearest are implemented, rest makes little sense.
Optionally works on subset of points.
Definition at line 59 of file treeDataPoint.H.
treeDataPoint  (  const pointField &  points  ) 
Construct from pointField. Holds reference!
Definition at line 41 of file treeDataPoint.C.
treeDataPoint  (  const pointField &  points, 
const labelList &  pointLabels  
) 
Construct from subset of pointField. Holds reference!
Definition at line 49 of file treeDataPoint.C.
References treeDataPoint::findNearestOp::findNearestOp().
ClassName  (  "treeDataPoint"  ) 

inline 
Definition at line 139 of file treeDataPoint.H.
References List< T >::size().

inline 
Definition at line 149 of file treeDataPoint.H.
Referenced by treeDataPoint::findNearestOp::operator()().

inline 
Definition at line 154 of file treeDataPoint.H.
Referenced by treeDataPoint::findNearestOp::operator()().

inline 
Definition at line 159 of file treeDataPoint.H.
References treeDataPoint::getVolumeType(), treeDataPoint::overlaps(), and treeDataPoint::shapePoints().
Referenced by treeDataPoint::findNearestOp::operator()().
Foam::pointField shapePoints  (  )  const 
Get representative point cloud for all shapes inside.
(one point per shape)
Definition at line 78 of file treeDataPoint.C.
References treeDataPoint::getVolumeType().
Referenced by treeDataPoint::useSubset().
Foam::volumeType getVolumeType  (  const indexedOctree< treeDataPoint > &  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 92 of file treeDataPoint.C.
References treeDataPoint::overlaps(), and volumeType::unknown.
Referenced by treeDataPoint::shapePoints(), and treeDataPoint::useSubset().
bool overlaps  (  const label  index, 
const treeBoundBox &  sampleBb  
)  const 
Does (bb of) shape at index overlap bb.
Definition at line 102 of file treeDataPoint.C.
References treeBoundBox::contains().
Referenced by treeDataPoint::getVolumeType(), and treeDataPoint::useSubset().
Does shape at index overlap the sphere.
Definition at line 113 of file treeDataPoint.C.
References Foam::magSqr().