Slic3r compiles with the new slice index interface.

This commit is contained in:
tamasmeszaros 2019-03-21 12:25:33 +01:00
parent 19a96336ff
commit d4dde12d0d
4 changed files with 172 additions and 83 deletions

View file

@ -776,10 +776,10 @@ void Preview::load_print_as_sla()
double shift_z = obj->get_current_elevation();
if (obj->is_step_done(slaposIndexSlices))
{
const SLAPrintObject::SliceIndex& index = obj->get_slice_index();
for (const SLAPrintObject::SliceIndex::value_type& id : index)
const std::vector<float>& hlvls = obj->get_height_levels();
for (float h : hlvls)
{
zs.insert(shift_z + id.first);
zs.insert(shift_z + double(h));
}
}
}