Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Latest commit

 

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please note that the repository for this crate has been archived, which means it is no longer actively maintained. However, you can still use it in your projects, but be aware that you might encounter issues that will not be fixed by the original developers.

Use meshing instead. meshing crate page on crates.io.

GitHub Workflow Status

Examples to see in the CLI:

cargo run --example simple_2d_triangulation

How to visualize by specifying the number of points:

cargo run --example 2d_plot 100

100points 1000points 10000points 100000points

or use this library on your project

Create sample-project

cargo new sample-project
cd sample-project

Edit Cargo.toml

delaunay_creator = "0.2.4"

Edit src/main.rs

fn main() {
    let square = vec![
        delaunay_creator::Point2D { x: 0.0, y: 0.0 },
        delaunay_creator::Point2D { x: 1.0, y: 0.0 },
        delaunay_creator::Point2D { x: 0.0, y: 1.0 },
        delaunay_creator::Point2D { x: 1.0, y: 1.0 },
    ];
    let res = delaunay_creator::bowyer_watson(square);
    println!("{:?}", res);
}

Run

cargo run
[Triangle { a: Point2D { x: 0.0, y: 0.0 }, b: Point2D { x: 1.0, y: 0.0 }, c: Point2D { x: 1.0, y: 1.0 } }, Triangle { a: Point2D { x: 0.0, y: 1.0 }, b: Point2D { x: 0.0, y: 0.0 }, c: Point2D { x: 1.0, y: 1.0 } }]

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages