danieledapo / marching_squares

marching squares implementation in rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

marching-squares

Implementation of the marching squares algorithm to find the boundaries of shapes given a scalar field. This algorithm can also be used to generate heightmaps or to find the medial axis of a shape.

To understand what the library can do take a look at the examples.

$ cargo run --release --example function
$ cargo run --release --example heightmap data/italy.png
$ cargo run --release --example medial_axis data/logo.png 20

function-fill.png italy.png medial-axis.png

About

marching squares implementation in rust

License:Apache License 2.0


Languages

Language:Rust 100.0%