Skip to main content

Exact integer arithmetic on the Eisenstein A₂ hexagonal lattice for build placement and pathfinding

Project description

Slackwater Lattice

Build placement on the Eisenstein A₂ hexagonal lattice. Isotropic. Exact. Beautiful.

A Python + Lua package that snaps all build placements to a hexagonal lattice. Guarantees minimum spacing, eliminates floating-point drift, and produces visually organic tidal-community architecture.

What it does

  • EisensteinInteger: exact arithmetic on the hexagonal lattice (no floats)
  • LatticeSnap: snap any (x, z) position to the nearest lattice point
  • LatticeNeighbors: find the 6 equidistant neighbors of any point
  • LatticePath: plan a path through the lattice (for bridges, roads, conveyor belts)
  • LatticeDensity: measure how dense a build is (harmony governor input)

Why hexagonal?

Square grids have a 41% diagonal penalty — neighbors aren't equidistant. Hexagonal lattices have 6 equidistant neighbors at exactly distance 1. Agreement is isotropic. Error is uniform. The math is exact integer arithmetic, inspired by the FLUX constraint engine.

Related

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slackwater_lattice-0.1.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slackwater_lattice-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file slackwater_lattice-0.1.0.tar.gz.

File metadata

  • Download URL: slackwater_lattice-0.1.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for slackwater_lattice-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fc33a8b87f524b0b1f7a7e6f67fa8b3a4aa3aabe187a4acebcf2d8c140c16816
MD5 c86c37ff287ebb89e60b8bdb826654f5
BLAKE2b-256 4da3501e1642073a83248cc34234c5b055f3665b8441224f52ec20f42e34c840

See more details on using hashes here.

File details

Details for the file slackwater_lattice-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for slackwater_lattice-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98f4aa31f8e4d8d92796282032c61a30cc95bb117a891d01d846441cbcba6bfe
MD5 93ecf4436ca85e2c48908b535a80dbd1
BLAKE2b-256 b77ec96347fdca59f08432b0d2283975f3fff3c08c3d851fe96422a2a581a2e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page