trimesh2d: fix correctness issues, algo correctly implemented

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-09-16 10:17:37 -07:00 committed by Stephen Gutekanst
parent 6ee405e7c7
commit ae699565bb
2 changed files with 97 additions and 53 deletions

View file

@ -41,7 +41,7 @@ pub fn main() {
var polygon = std.ArrayListUnmanaged(f32){};
// append your polygon vertices:
// try polygon.append(1.0);
// try polygon.append(allocator, 1.0);
var out_triangles = std.ArrayListUnmanaged(u32){};
var processor = trimesh2d.Processor(f32){};