diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2018-03-01 20:15:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-01 20:15:37 +0100 |
commit | 334b6c68d35e001ce5e8eb8c1bfde7d446fd241c (patch) | |
tree | ac9a9face8c1eacef53014246658b525e49465af /core/math/triangulate.h | |
parent | 98609c3993e6a935edfb993a32e6c229ccfd67b7 (diff) | |
parent | e73266a51cdcd63a394848d433f854c1c4e29198 (diff) | |
download | redot-engine-334b6c68d35e001ce5e8eb8c1bfde7d446fd241c.tar.gz |
Merge pull request #17129 from nical/issue-17102
Allow degenerate triangles in polygon triangulation when necessary.
Diffstat (limited to 'core/math/triangulate.h')
-rw-r--r-- | core/math/triangulate.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/math/triangulate.h b/core/math/triangulate.h index e336dc5756..b1a583d0c5 100644 --- a/core/math/triangulate.h +++ b/core/math/triangulate.h @@ -51,10 +51,11 @@ public: static bool is_inside_triangle(real_t Ax, real_t Ay, real_t Bx, real_t By, real_t Cx, real_t Cy, - real_t Px, real_t Py); + real_t Px, real_t Py, + bool include_edges); private: - static bool snip(const Vector<Vector2> &p_contour, int u, int v, int w, int n, const Vector<int> &V); + static bool snip(const Vector<Vector2> &p_contour, int u, int v, int w, int n, const Vector<int> &V, bool relaxed); }; #endif |