SLA slices preview - wip 2

This commit is contained in:
Enrico Turri 2018-11-26 16:17:59 +01:00
parent a4e204012d
commit b153c8cb20
4 changed files with 49 additions and 14 deletions

View file

@ -93,7 +93,7 @@ public:
// to the z coordinate of the object coordinate system.
struct SliceRecord {
using Key = long long;
inline static float scale_back(Key h) { return float(scale_(h)); }
inline static float scale_back(Key h) { return float(h * SCALING_FACTOR); }
using Idx = size_t;
static const Idx NONE = Idx(-1); // this will be the max limit of size_t