vtf-logo

Grid< 3, T > Class Template Reference

A class to hold the 3-D grid data. More...

List of all members.

Public Types

typedef Base::Number Number
 The number type.
typedef Base::Point Point
 A point in 3-D.
typedef Base::Index Index
 A multi-index in 3-D.
typedef Base::Range Range
 A multi-index range in 3-D.
typedef Base::Lattice Lattice
 A lattice.

Public Member Functions

Constructors, etc.
 Grid ()
 Default constructor. Empty arrays.
 Grid (const Grid &other)
 Copy constructor.
template<bool A1, bool A2, bool A3, bool A4>
 Grid (ads::Array< 3, Number, A1 > *distance, ads::Array< 3, Point, A2 > *gradientOfDistance, ads::Array< 3, Point, A3 > *closestPoint, ads::Array< 3, int, A4 > *closestFace)
 Construct from the grids.
 ~Grid ()
 Destructor. Does not free grid memory.
Grid & operator= (const Grid &other)
 Assignment operator.
Mathematical operations.
bool isValid (const Lattice &lattice, Number maximumDistance, int maximumFaceIdentifier, int maximumReportedErrors=1000) const
 Return true if the signed distance, closest point, etc. are valid.
bool isValidUnsigned (const Lattice &lattice, Number maximumDistance, int maximumFaceIdentifier, int maximumReportedErrors=1000) const
 Return true if the unsigned distance, closest point, etc. are valid.
bool floodFill (Number farAway)
 Flood fill the signed distance.


Detailed Description

template<typename T>
class Grid< 3, T >

A class to hold the 3-D grid data.


Member Function Documentation

template<typename T>
bool Grid< 3, T >::floodFill ( Number  farAway  )  [inline]

Flood fill the signed distance.

If there are any points with known distance then return true and set the unknown distances to +- farAway. Otherwise set all the distances to + farAway and return false.


The documentation for this class was generated from the following file:
Generated on Fri Aug 24 12:55:44 2007 for Closest Point Transform by  doxygen 1.4.7