#include <StreamLineGrid.h>
Public Member Functions | |
StreamLineGrid (float dSep) | |
~StreamLineGrid () | |
bool | addPoint (vec3 point) |
gv Adds a point to the grid | |
float | getMinimalDistance (vec3 point, vec3 exceptionPoint) |
void | printGrid () |
gv Obsoloete? Checks whether the point is valid or not (i.e. distance to all other points is big enough) |
Definition at line 19 of file StreamLineGrid.h.
StreamLineGrid::StreamLineGrid | ( | float | dSep | ) |
Definition at line 8 of file StreamLineGrid.cpp.
StreamLineGrid::~StreamLineGrid | ( | ) |
Definition at line 18 of file StreamLineGrid.cpp.
bool StreamLineGrid::addPoint | ( | vec3 | point | ) |
gv Adds a point to the grid
Definition at line 24 of file StreamLineGrid.cpp.
References slgGridCell::points.
gv Retuns the minimal distance of the point to all points of the current and surrounding cells, or -1 if those cells contain no points. The exceptionPoint is the last sample-point of the streamline and excluded from testing. If no exceptionPoint should be used, pass (-1, -1, -1) for this point.
Definition at line 69 of file StreamLineGrid.cpp.
References vec3::dist(), NUM_NEIGHBORS, slgGridCell::points, X, Y, and Z.
void StreamLineGrid::printGrid | ( | ) |
gv Obsoloete? Checks whether the point is valid or not (i.e. distance to all other points is big enough)
gv DEBUG: Print grid and it's points to log file
Definition at line 182 of file StreamLineGrid.cpp.
References slgGridCell::points.