6 #ifndef HILBERTORDER3D_UTILS_HPP 7 #define HILBERTORDER3D_UTILS_HPP 1 25 void AdjustPoints(vector<Vector3D>
const & vPointsIn, vector<Vector3D> & vPointsOut);
32 void FindEqualIndices(vector<size_t>
const & vD_sorted, vector<vector<size_t> > & vOut);
39 void reorder(vector<T> & v, vector<size_t>
const & order)
42 for (
size_t ii = 0; ii < v.size(); ++ii)
44 v[ii] = vCopy[order[ii]];
49 #endif // HILBERTORDER3D_UTILS_HPP void FindEqualIndices(vector< size_t > const &vD_sorted, vector< vector< size_t > > &vOut)
Scale a vector of 3D points to the unit-cube.
void AdjustPoints(vector< Vector3D > const &vPointsIn, vector< Vector3D > &vPointsOut)
Scale a vector of 3D points to the unit-cube.
3D Geometrical calculations
void reorder(vector< T > &v, vector< size_t > const &order)
Reorder a vector according to an index vector (obtained from the 'ordered' function) ...
int EstimateHilbertIterationNum(vector< Vector3D > const &cor)
Estimate the number of iterations required in the Hilbert Curve, according to the number of points...