As shown in the README example and the Google Colab example, we can construct Z-order or Morton space filling curve patterns. In my original plan for presenting examples, I thought I should construct Hilbert-type space filling curves first. In fact, a Hilbert.py file is already in the examples folder.
The question is, how should I modify the algorithm so that we can construct Hilbert-type space filling curves?
Thoughts:
- Change the sort order when switching to a new direction.
- For implementation details, I can either create a new function similar to
sort_divide but for Hilbert-type pattern sorting/indexing or keep the same function but change the behavior when a key word like pattern_type is specified to either Morton or Hilbert.
As shown in the README example and the Google Colab example, we can construct Z-order or Morton space filling curve patterns. In my original plan for presenting examples, I thought I should construct Hilbert-type space filling curves first. In fact, a
Hilbert.pyfile is already in theexamplesfolder.The question is, how should I modify the algorithm so that we can construct Hilbert-type space filling curves?
Thoughts:
sort_dividebut for Hilbert-type pattern sorting/indexing or keep the same function but change the behavior when a key word likepattern_typeis specified to eitherMortonorHilbert.