Remove the hollowed interior slices from the model slices in 2D
This commit is contained in:
parent
7655488639
commit
41388bdb01
@ -222,8 +222,14 @@ void SLAPrint::Steps::slice_model(SLAPrintObject &po)
|
|||||||
auto &slice_grid = po.m_model_height_levels;
|
auto &slice_grid = po.m_model_height_levels;
|
||||||
slicer.slice(slice_grid, SlicingMode::Regular, closing_r, &po.m_model_slices, thr);
|
slicer.slice(slice_grid, SlicingMode::Regular, closing_r, &po.m_model_slices, thr);
|
||||||
|
|
||||||
// sla::DrainHoles drainholes = po.transformed_drainhole_points();
|
if (po.m_hollowing_data) {
|
||||||
// cut_drainholes(po.m_model_slices, slice_grid, closing_r, drainholes, thr);
|
po.m_hollowing_data->interior.repair();
|
||||||
|
TriangleMeshSlicer interior_slicer(&po.m_hollowing_data->interior);
|
||||||
|
std::vector<ExPolygons> interior_slices;
|
||||||
|
interior_slicer.slice(slice_grid, SlicingMode::Regular, closing_r, &interior_slices, thr);
|
||||||
|
for (size_t i = 0; i < slice_grid.size(); ++i)
|
||||||
|
po.m_model_slices[i] = diff_ex(po.m_model_slices[i], interior_slices[i]);
|
||||||
|
}
|
||||||
|
|
||||||
auto mit = slindex_it;
|
auto mit = slindex_it;
|
||||||
double doffs = m_print->m_printer_config.absolute_correction.getFloat();
|
double doffs = m_print->m_printer_config.absolute_correction.getFloat();
|
||||||
|
Loading…
Reference in New Issue
Block a user