diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2020-02-10 18:33:59 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2020-02-10 18:33:59 +0300 |
commit | 41388bdb01e7418717a265d66c42f900814b50aa (patch) | |
tree | d174ccc60451f6210108d361b84afbfbdf02ed65 /src/libslic3r/SLAPrintSteps.cpp | |
parent | 76554886395fb05d28ddeb4355e86398ab1bdc4c (diff) |
Remove the hollowed interior slices from the model slices in 2D
Diffstat (limited to 'src/libslic3r/SLAPrintSteps.cpp')
-rw-r--r-- | src/libslic3r/SLAPrintSteps.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libslic3r/SLAPrintSteps.cpp b/src/libslic3r/SLAPrintSteps.cpp index ff170d917..e740b7260 100644 --- a/src/libslic3r/SLAPrintSteps.cpp +++ b/src/libslic3r/SLAPrintSteps.cpp @@ -222,8 +222,14 @@ void SLAPrint::Steps::slice_model(SLAPrintObject &po) auto &slice_grid = po.m_model_height_levels; slicer.slice(slice_grid, SlicingMode::Regular, closing_r, &po.m_model_slices, thr); -// sla::DrainHoles drainholes = po.transformed_drainhole_points(); -// cut_drainholes(po.m_model_slices, slice_grid, closing_r, drainholes, thr); + if (po.m_hollowing_data) { + 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; double doffs = m_print->m_printer_config.absolute_correction.getFloat(); |