meshing 0.0.1

meshing for 2D and 3D(not implemented yet)
Documentation
  • Coverage
  • 0%
    0 out of 13 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.29 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.08 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nash1111

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![
        meshing::Point2D { x: 0.0, y: 0.0 },
        meshing::Point2D { x: 1.0, y: 0.0 },
        meshing::Point2D { x: 0.0, y: 1.0 },
        meshing::Point2D { x: 1.0, y: 1.0 },
    ];
    let res = meshing::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 } }]