diff options
| author | Arne Dußin | 2020-11-25 21:38:38 +0100 |
|---|---|---|
| committer | Arne Dußin | 2020-11-25 21:38:38 +0100 |
| commit | 77f2d35cb52d9443e9a0e9250aa941fc3d7610b6 (patch) | |
| tree | 55b48a4cb84d1fc057240919735ce5d2b59bca6e /src/math/polygon/triangulate.rs | |
| parent | 58ca28d4b21667e9b86939ad574f477e02f2b290 (diff) | |
| download | graf_karto-77f2d35cb52d9443e9a0e9250aa941fc3d7610b6.tar.gz graf_karto-77f2d35cb52d9443e9a0e9250aa941fc3d7610b6.zip | |
Add polygon rooms that can actually kind of be used
It's still kind of strange to use the polygon tool, but at least it
seems stable enough so I'm confident enough (and sick enough of it) to
release it into the wild.
Diffstat (limited to 'src/math/polygon/triangulate.rs')
| -rw-r--r-- | src/math/polygon/triangulate.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math/polygon/triangulate.rs b/src/math/polygon/triangulate.rs index 78dfa03..4c7d952 100644 --- a/src/math/polygon/triangulate.rs +++ b/src/math/polygon/triangulate.rs @@ -136,7 +136,8 @@ mod test { Vec2::new(2., 0.5), Vec2::new(4., 2.), Vec2::new(4., 0.), - ]); + ]) + .unwrap(); let triangles = super::triangulate(polygon); |
