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. |
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.