You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let dt = DelaunayTriangulation::bulk_load(vec![Point2::new(-0.4583333333333335,0.0035353982507333875),Point2::new(-0.44401041666666685,0.09000381880347848),Point2::new(-0.4296875000000002,0.17647223935622358),Point2::new(-0.4153645833333336,0.26294065990896864),Point2::new(-0.40104166666666696,0.34940908046171376),Point2::new(-0.34375,0.4242340611633537),Point2::new(-0.2864583333333335,0.48354314550173816),Point2::new(-0.22916666666666696,0.5220359027883882),Point2::new(-0.171875,0.5605286600750382),Point2::new(-0.11458333333333348,0.5743482879175245),Point2::new(-0.05729166666666696,0.5864208547026089),]).unwrap();let tri = dt.inner_faces().nth(4).unwrap();dbg!(tri.vertices().map(|v| v.position()));dbg!(tri.area());
Example code:
Output:
The yellow line is the triangle that is made from the 3 vertices (they lie on the same line)
The text was updated successfully, but these errors were encountered: