OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

octreeDataFaceList Class Reference

Collaboration diagram for octreeDataFaceList:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 66 of file octreeDataFaceList.H.


Public Member Functions

 ClassName ("octreeDataFaceList")
 octreeDataFaceList (const bMesh &mesh)
 Construct from all faces in bMesh.
 octreeDataFaceList (const bMesh &mesh, const labelList &faceLabels)
 Construct from selected faces in bMesh.
 octreeDataFaceList (const octreeDataFaceList &)
 Construct as copy.
 ~octreeDataFaceList ()
const bMesh & mesh () const
const labelList & faceLabels () const
const treeBoundBoxList & allBb () const
label size () const
label getSampleType (const octree< octreeDataFaceList > &, const point &) const
 Get type of sample.
bool overlaps (const label index, const treeBoundBox &sampleBb) const
 Does (bb of) shape at index overlap bb.
bool contains (const label index, const point &sample) const
 Does shape at index contain sample.
bool intersects (const label index, const point &start, const point &end, point &intersectionPoint) const
 Segment (from start to end) intersection with shape.
bool findTightest (const label index, const point &sample, treeBoundBox &tightest) const
 Sets newTightest to bounding box (and returns true) if.
scalar calcSign (const label index, const point &sample, vector &n) const
 Given index get unit normal and calculate (numerical) sign.
scalar calcNearest (const label index, const point &sample, point &nearest) const
 Calculates nearest (to sample) point in shape.
void write (Ostream &os, const label index) const
 Write shape at index.

Constructor & Destructor Documentation

octreeDataFaceList ( const bMesh &  mesh  ) 

Construct from all faces in bMesh.

octreeDataFaceList ( const bMesh &  mesh,
const labelList &  faceLabels 
)

Construct from selected faces in bMesh.

Construct as copy.


Member Function Documentation

ClassName ( "octreeDataFaceList"   ) 

const bMesh& mesh (  )  const [inline]

Definition at line 125 of file octreeDataFaceList.H.

const labelList& faceLabels (  )  const [inline]

Definition at line 130 of file octreeDataFaceList.H.

const treeBoundBoxList& allBb (  )  const [inline]

Definition at line 135 of file octreeDataFaceList.H.

label size (  )  const [inline]

Definition at line 140 of file octreeDataFaceList.H.

label getSampleType ( const octree< octreeDataFaceList > &  ,
const point &   
) const

Get type of sample.

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

Does (bb of) shape at index overlap bb.

bool contains ( const label  index,
const point &  sample 
) const

Does shape at index contain sample.

bool intersects ( const label  index,
const point &  start,
const point &  end,
point &  intersectionPoint 
) const

Segment (from start to end) intersection with shape.

at index. If intersects returns true and sets intersectionPoint

bool findTightest ( const label  index,
const point &  sample,
treeBoundBox &  tightest 
) const

Sets newTightest to bounding box (and returns true) if.

nearer to sample than tightest bounding box. Otherwise returns false.

scalar calcSign ( const label  index,
const point &  sample,
vector &  n 
) const

Given index get unit normal and calculate (numerical) sign.

of sample. Used to determine accuracy of calcNearest or inside/outside.

scalar calcNearest ( const label  index,
const point &  sample,
point &  nearest 
) const

Calculates nearest (to sample) point in shape.

Returns point and mag(nearest - sample). Returns GREAT if sample does not project onto (triangle decomposition) of face.

void write ( Ostream &  os,
const label  index 
) const

Write shape at index.


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd