Skip to content

matrohin/gav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geometry Algorithms Visualization (gav)

This application demonstrates some of the classic computational geometry algorithms.

Building

To buid gav, you need the latest stable version of Rust.

Then just clone and use cargo:

git clone https://github.com/matrohin/gav.git
cd gav/
cargo build --release

Binary will be located at ./target/release/gav

Running:

You can use Left, Right, Home, End keyboard buttons to change current algorithm step.

Command-line arguments:

USAGE:
    gav [OPTIONS] <algo>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --draw_width <draw width>       [default: 0.1]
    -n, --number <number>               [default: 50]
    -s, --seed <seed>
    -w, --window_size <window size>     [default: 1000]

ARGS:
    <algo>     [possible values: closest_pair_dnc, closest_pair_sl, convex_hull_dnc, graham, graham_andrew,
              shamos_hoey]

Example

Here is the result of running gav graham -w 400 -n 20 and gav closest_pair_sl -w 400 -n 15 -d 0.5:

Graham Closest pair sweep line

About

Geometry Algorithms Visualization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages