circle-packing

Simple heuristic for packing discs of varying radii in a circle

Version on this page:0.1.0.4
LTS Haskell 15.15:[email protected]:4
Stackage Nightly 2020-06-05:[email protected]:4
Latest on Hackage:[email protected]:4

See all snapshots circle-packing appears in

BSD-3-Clause licensed and maintained by Joachim Breitner

Module documentation for 0.1.0.4

This version can be pinned in stack with:[email protected]:96a5553a85b98ccfcd0e49584a77abf8fbe28bb2783c25062415d6e1e032ab1c,1921

Given a number of circles with their radii, this packags tries to arrange them tightly, without overlap and forming a large circle.

Finding the optimal solution is NP hard, so only heuristics are feasible. This particular implementation is neither very good nor very fast, compared to the state of the art in research. Nevertheless it is simple to use and gives visually acceptable results.

Contributions of better algorithms are welcome.

Depends on 1 package(full list with versions):
Used by 1 package in lts-3.22(full list with versions):