Hilbert space filling curve. More...
#include <vector>
#include <stack>
#include <algorithm>
#include <cmath>
#include "geometry.hpp"
#include "../misc/universal_error.hpp"
Go to the source code of this file.
Functions | |
vector< int > | HilbertOrder (vector< Vector2D > const &cor, int num, int innernum=0) |
Returns the Hilber curve ordering. More... | |
Hilbert space filling curve.
Definition in file HilbertOrder.hpp.
vector<int> HilbertOrder | ( | vector< Vector2D > const & | cor, |
int | num, | ||
int | innernum = 0 |
||
) |
Returns the Hilber curve ordering.
cor | The points |
num | The number of points (starting from 0) to calculate the order for |
innernum | The number of points to exclude (starting from 0) |
Definition at line 103 of file HilbertOrder.cpp.