Skip to content

Hilbert type space filling curve #4

Description

@Ruibin-Liu

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:

  1. Change the sort order when switching to a new direction.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions