mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
changed SliceIndex to use floating point keys.
This commit is contained in:
parent
34587bd00f
commit
729e35f1ff
2 changed files with 8 additions and 4 deletions
|
@ -92,8 +92,8 @@ public:
|
|||
// levels of the model in scaled-clipper coordinates. The levels correspond
|
||||
// to the z coordinate of the object coordinate system.
|
||||
struct SliceRecord {
|
||||
using Key = long long;
|
||||
inline static float scale_back(Key h) { return float(h * SCALING_FACTOR); }
|
||||
using Key = float;
|
||||
// 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue