OpenFOAM logo
Open Source CFD Toolkit

triSurfaceSearch Class Reference

Collaboration diagram for triSurfaceSearch:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 triSurfaceSearch (const triSurface &)
 Construct from surface. Holds reference to surface!
 ~triSurfaceSearch ()
const octree< octreeDataTriSurface > & tree () const
const triSurfacesurface () const
boolList calcInside (const pointField &searchPoints) const
 Calculate for each searchPoint inside/outside status.
labelList calcNearestTri (const pointField &samples, const vector &span) const
 Calculate index of nearest triangle (or -1) for each sample.
tmp< pointFieldcalcNearest (const pointField &samples, const vector &span) const
 Calculate nearest points (to searchPoints) on surface.
pointIndexHit nearest (const point &, const vector &span) const
 Calculate nearest point on surface for single searchPoint. Returns.

Static Public Attributes

const point greatPoint
 Point far away; used for illegal finds.

Constructor & Destructor Documentation

triSurfaceSearch const triSurface  ) 
 

Construct from surface. Holds reference to surface!

~triSurfaceSearch  ) 
 


Member Function Documentation

boolList calcInside const pointField searchPoints  )  const
 

Calculate for each searchPoint inside/outside status.

tmp<pointField> calcNearest const pointField samples,
const vector span
const
 

Calculate nearest points (to searchPoints) on surface.

Looks only in box of size 2*span around sample. Returns greatPoint if not found.

labelList calcNearestTri const pointField samples,
const vector span
const
 

Calculate index of nearest triangle (or -1) for each sample.

Looks only in box of size 2*span around sample.

pointIndexHit nearest const point ,
const vector span
const
 

Calculate nearest point on surface for single searchPoint. Returns.

in pointIndexHit:

  • hit() : whether nearest point found within bounding box
  • hitPoint() : coordinate of nearest point
  • index() : surface triangle label

const triSurface& surface  )  const [inline]
 

Definition at line 111 of file triSurfaceSearch.H.

References Foam::labelList, Foam::point, Foam::pointField, and Foam::vector.

const octree<octreeDataTriSurface>& tree  )  const [inline]
 

Definition at line 106 of file triSurfaceSearch.H.


Member Data Documentation

const point greatPoint [static]
 

Point far away; used for illegal finds.

Definition at line 91 of file triSurfaceSearch.H.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org