Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/libslic3r/TriangleMeshSlicer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2436,10 +2436,7 @@ Polygons project_mesh(
std::vector<Polygons> top, bottom;
std::vector<float> zs { -1e10, 1e10 };
slice_mesh_slabs(mesh, zs, trafo, &top, &bottom, throw_on_cancel);

// We typically perform a union operation on a lot of overlapping polygons, which can be slow in some cases.
// To address this, we use parallel reduction, which can be significantly faster in such cases.
return union_(union_parallel_reduce(top.front()), union_parallel_reduce(bottom.back()));
return union_(top.front(), bottom.back());
}

void cut_mesh(const indexed_triangle_set &mesh, float z, indexed_triangle_set *upper, indexed_triangle_set *lower, bool triangulate_caps)
Expand Down