Ported from the playground branch. Various documentation and optimization.

This commit is contained in:
bubnikv 2016-09-13 13:30:00 +02:00
parent a5b7f14dfa
commit 620c6c7378
38 changed files with 586 additions and 92 deletions

View file

@ -1,7 +1,7 @@
// Optimize the extrusion simulator to the bones.
#pragma GCC optimize ("O3")
#undef SLIC3R_DEBUG
#define NDEBUG
//#pragma GCC optimize ("O3")
//#undef SLIC3R_DEBUG
//#define NDEBUG
#include <cmath>
#include <cassert>
@ -640,7 +640,7 @@ struct Cell
// Height of the covered part in excess to the expected layer height.
float excess_height;
bool operator<(const Cell &c2) {
bool operator<(const Cell &c2) const {
return this->excess_height < c2.excess_height;
}
};