diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-04-28 12:03:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 12:03:39 +0200 |
commit | f879a08a621b153c216453b97e2bf48c8ac296d6 (patch) | |
tree | 9dc54e0464781e266e164e49fa6fd643f2dbac2f | |
parent | 35a8693e6ab5a46d2e72e39aa816689de4d371b9 (diff) | |
parent | a165eed73bd9783a07cdec4571a4912df71464ce (diff) |
Merge pull request #37064 from GNSS-Stylist/Face3_area_calc_fix_clean
Fix area calculation of Face3
-rw-r--r-- | core/math/face3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/face3.cpp b/core/math/face3.cpp index beb0a8e405..20c316c322 100644 --- a/core/math/face3.cpp +++ b/core/math/face3.cpp @@ -169,7 +169,7 @@ Vector3 Face3::get_median_point() const { } real_t Face3::get_area() const { - return vec3_cross(vertex[0] - vertex[1], vertex[0] - vertex[2]).length(); + return vec3_cross(vertex[0] - vertex[1], vertex[0] - vertex[2]).length() * 0.5; } ClockDirection Face3::get_clock_dir() const { |