Merge pull request #37064 from GNSS-Stylist/Face3_area_calc_fix_clean
Fix area calculation of Face3
This commit is contained in:
commit
f879a08a62
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue