Refactoring changes to the slice index.

This commit is contained in:
tamasmeszaros 2019-03-22 15:31:38 +01:00
parent 5e646562cd
commit d165dbb498
5 changed files with 249 additions and 215 deletions

View file

@ -775,10 +775,10 @@ void Preview::load_print_as_sla()
double shift_z = obj->get_current_elevation();
if (obj->is_step_done(slaposIndexSlices))
{
size_t cnt = obj->get_slice_count();
for (size_t i = 0; i < cnt; i++)
auto slicerecords = obj->get_slice_records();
for (auto& rec : slicerecords)
{
zs.insert(shift_z + obj->get_slice_record(i).key() * SCALING_FACTOR);
zs.insert(shift_z + /*rec.slice_level()*/ rec.key() * SCALING_FACTOR);
}
}
}