Commit Graph

13 Commits

Author SHA1 Message Date
Lukas Matena
a4ea221f5b Fixed build on Linux, abs->std::abs 2021-08-06 13:03:30 +02:00
Filip Sykala
6f42987f3b Allow skip edge with only one triangle during simplification 2021-07-21 15:23:48 +02:00
Filip Sykala
68fe5c3630 QEC: When collapsing edge flip normal than check other edges in triangle
Quadric is calculated with double precission of normal
Fix calculation of normal for changed triangles
2021-07-19 15:46:41 +02:00
Filip Sykala
0d06ec956d Fix status function 2021-07-19 10:12:19 +02:00
Filip Sykala
f1d92cdf9c FIX: Mutable priority queue 2021-07-12 16:36:08 +02:00
Filip Sykala
e9cb528198 FIX Simplify test 2021-07-09 10:31:05 +02:00
Filip Sykala
c5890b9b67 Add throw_on_cancel and statusfn into QEC 2021-07-09 09:09:52 +02:00
Filip Sykala
d78f5d877b Speed up QEC by move error directly into MutablePriorityQueue
Memory optimization: Change size_t to 32bit int
Lightweight Error structure for faster PriorityQueue
2021-07-08 18:08:27 +02:00
Filip Sykala
2cb6e4ec8a Assert check of new vertex can't be used general on All models(depends on scale)
Fix variable name in compare function
Remove second triangle from  MPQ
2021-06-23 12:16:22 +02:00
Filip Sykala
6049a7e6a8 Parallel QEC initialization 2021-06-23 09:50:27 +02:00
Filip Sykala
b93956e7ed Fix Linux warnings
../src/libslic3r/QuadricEdgeCollapse.cpp:110:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
../src/libslic3r/QuadricEdgeCollapse.cpp:394:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/libslic3r/QuadricEdgeCollapse.cpp:395:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/libslic3r/QuadricEdgeCollapse.cpp:514:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/libslic3r/QuadricEdgeCollapse.cpp:514:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
2021-06-22 10:01:14 +02:00
Filip Sykala
8dbc7c57d6 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
2021-06-22 09:41:38 +02:00
Filip Sykala
429aff468a Add quadric edge collapse 2021-06-22 09:21:16 +02:00