Curve:
A point cloud has no order. A space-filling curve gives it one. Five steps, one at a time: press Next (or →).
Measured on the course's car scan (2 500 points), cutting each ordering into patches of 64 points, as PTv3 does with 1 024:
| order | next point in the list is on average | of a point's 8 nearest neighbours, in its patch | a patch spans |
|---|---|---|---|
| file order | 1.51 m away | 0.2 | 4.3 m |
| sort by x | 1.37 m | 1.7 | 3.7 m |
| row by row (x, then y, then z) | 0.24 m | 4.1 | 2.3 m |
| Z-order curve | 0.10 m | 6.2 | 1.2 m |
| Hilbert curve | 0.09 m | 6.0 | 1.0 m |
The same 8 × 8 grid, all four curves drawn together. Z-order makes Z shapes and sometimes jumps (the next cell does not touch the current one: two consecutive cells far apart). Hilbert makes U-turns and never jumps. The trans versions are the same curves with x and y swapped.