cortesi/spacecurve
حول
A library for drawing space-filling curves like the Hilbert Curve.
التصميم والوسائطالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +٢
- خلال 15 يومًا
- +٢
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل
generated with: 'scurve allrgb hilbert'
A space-filling curve is a continuous surjection $f:[0,1]\to[0,1]^d$ for $d\ge 2$. In discrete spaces, this is an ordering of grid cells that visits every cell; some orderings preserve adjacency (e.g., Hilbert), while others trade adjacency for simplicity (e.g., Morton/Z-order).
This project contains implementations of various space-filling curves, plus tools for visualising and working with them.
Accretion
Accretion is an experimental center-out 3D curve for sparse data views. It trades some large-interval compactness for outward growth while retaining face adjacency, nested refinement, and exact forward/inverse indexing.
Explore the interactive research lab and the construction, comparisons, and limitations. The lab includes three profiles, reference curves, thresholded entropy fixtures, and local binary-file analysis. Accretion is 3D-only and is available through its library constructor and research lab.
cargo run -p scurve -- accretion-lab docs/accretion/index.html
Loom
Loom is a new experimental construction with address-sensitive axis scheduling. Every axis takes the fastest role once per dimension-sized block of recursion levels. It supports exact, reversible regridding between equal-cardinality N-dimensional grids.
Explore the interactive atlas and the construction, proofs, measurements, and novelty limits. The atlas includes 2D/3D paths and linked 3D↔2D, 4D→2D, and 6D→2D/3D data views.
cargo run -p scurve -- map -d 27 loom /tmp/loom.png
cargo run -p scurve -- loom-atlas docs/loom/atlas.html
spacecurve
A Rust library for generating and working with space-filling curves.
// 2D Hilbert curve on an 8x8 grid (order 3)
let curve = spacecurve::curve_from_name("hilbert", 2, 8)?;
println!(
"{}D Hilbert length: {} cells",
curve.dimensions(),
curve.length()
);
let index = 10;
let point = curve.point(index);
println!("Point at index {index}: {:?}", point);
let round_trip = curve.index(&point);
println!("Index for {:?}: {round_trip}", point);
assert_eq!(round_trip, index);
scurve
A command-line tool and GUI for generating images of space-filling curves.
Install with:
cargo install scurve
playground
A GUI for visualising space-filling curves and their properties, written in Rust with egui and compiled to WebAssembly.
related blog posts
Development on spacecurve (and its ancestors) is usually spurred along by posts on my blog. Some of spacecurve's features are documented and illustrated in the following posts:
- Portrait of the Hilbert Curve
- Generating colour maps with space-filling curves
- Hilbert Curve + Sorting Algorithms + Procrastination = ?
community
Want to contribute? Have ideas or feature requests? Come tell me about it on Discord.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…