mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 20:06:07 +08:00
FIX:mesh volume should be positive
jira: none Change-Id: I37cc0afbb1791208b6f6c0829014f44da1c1701e
This commit is contained in:
parent
d3ee6995ed
commit
54bbd63891
@ -1697,7 +1697,7 @@ float its_volume(const indexed_triangle_set &its)
|
||||
volume += (area * height) / 3.0f;
|
||||
}
|
||||
|
||||
return volume;
|
||||
return std::abs(volume);
|
||||
}
|
||||
|
||||
float its_average_edge_length(const indexed_triangle_set &its)
|
||||
|
Loading…
x
Reference in New Issue
Block a user