vtf-logo

Grid< 2, T > Class Template Reference

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

List of all members.

Public Types

typedef Base::Number Number
 The number type.
typedef Base::Point Point
 A point in 2-D.
typedef Base::Index Index
 A multi-index in 2-D.
typedef Base::Range Range
 A multi-index range in 2-D.
typedef Base::Lattice Lattice
 A lattice.
typedef Vertex< 2, NumberVertex
 A vertex in the b-rep.
typedef Face< 2, NumberFace
 A face in the b-rep.

Public Member Functions

Constructors, etc.
 Grid ()
 Default constructor. Uninitialized memory.
 Grid (const Grid &other)
 Copy constructor.
template<bool A1, bool A2, bool A3, bool A4>
 Grid (ads::Array< 2, Number, A1 > *distance, ads::Array< 2, Point, A2 > *gradientOfDistance, ads::Array< 2, Point, A3 > *closestPoint, ads::Array< 2, int, A4 > *closestFace)
 Construct from grid information.
 ~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=100) const
 Return true if the signed distance, closest point, etc. are valid.
bool isValidUnsigned (const Lattice &lattice, Number maximumDistance, int maximumFaceIdentifier, int maximumReportedErrors=100) 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< 2, T >

A class to hold the 2-D grid data.


Member Function Documentation

template<typename T>
bool Grid< 2, 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