diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2019-03-01 20:35:26 +0000 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2019-03-01 20:58:39 +0000 |
commit | 33c6b0ec1a352d964d504c49ea0c09e99b390817 (patch) | |
tree | 0c355ad5fa618c55f8a060fcf96cc890a439d515 /core/math/quick_hull.h | |
parent | 51b80f685752dd0ccdd3debd15e339466adfb208 (diff) |
Scale quickhull tolerance with mesh size
Taken from three.js's implementation. Tested with a wide variety of
meshes.
Diffstat (limited to 'core/math/quick_hull.h')
-rw-r--r-- | core/math/quick_hull.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/quick_hull.h b/core/math/quick_hull.h index 2e659cab6e..a445a47cbe 100644 --- a/core/math/quick_hull.h +++ b/core/math/quick_hull.h @@ -64,7 +64,7 @@ public: struct Face { Plane plane; - int vertices[3]; + uint32_t vertices[3]; Vector<int> points_over; bool operator<(const Face &p_face) const { |