mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-24 03:12:07 +00:00
Add test checking diference in volume before/after simplification
FIX warnings ..\src\libslic3r\QuadricEdgeCollapse.cpp(173): warning C4056: overflow in floating-point constant arithmetic ..\src\libslic3r\QuadricEdgeCollapse.cpp(232): warning C4056: overflow in floating-point constant arithmetic
This commit is contained in:
@@ -123,7 +123,7 @@ bool Slic3r::its_quadric_edge_collapse(indexed_triangle_set &its,
|
||||
EdgeInfos e_infos;
|
||||
std::tie(t_infos, v_infos, e_infos) = init(its);
|
||||
|
||||
static constexpr double max_error = std::numeric_limits<double>::max();
|
||||
static constexpr float max_error = std::numeric_limits<float>::max();
|
||||
|
||||
auto cmp = [&t_infos](size_t vi0, size_t vi1) -> bool {
|
||||
const Error &e0 = t_infos[vi0].e;
|
||||
|
||||
Reference in New Issue
Block a user