mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-20 04:39:09 -07:00
TriangleMeshSlicer: Got rid of admesh!
This commit is contained in:
@@ -45,7 +45,8 @@ std::vector<ExPolygons> SupportTree::slice(
|
||||
|
||||
if (!sup_mesh.empty()) {
|
||||
slices.emplace_back();
|
||||
slice_mesh(sup_mesh, grid, cr, slices.back(), ctl().cancelfn);
|
||||
assert(sup_mesh.has_shared_vertices());
|
||||
slices.back() = slice_mesh_ex(sup_mesh.its, grid, cr, ctl().cancelfn);
|
||||
}
|
||||
|
||||
if (!pad_mesh.empty()) {
|
||||
@@ -58,7 +59,8 @@ std::vector<ExPolygons> SupportTree::slice(
|
||||
auto padgrid = reserve_vector<float>(size_t(cap > 0 ? cap : 0));
|
||||
std::copy(grid.begin(), maxzit, std::back_inserter(padgrid));
|
||||
|
||||
slice_mesh(pad_mesh, padgrid, cr, slices.back(), ctl().cancelfn);
|
||||
assert(pad_mesh.has_shared_vertices());
|
||||
slices.back() = slice_mesh_ex(pad_mesh.its, padgrid, cr, ctl().cancelfn);
|
||||
}
|
||||
|
||||
size_t len = grid.size();
|
||||
|
||||
Reference in New Issue
Block a user