Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2021-05-18 16:05:23 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-05-18 16:05:30 +0300
commit70b4915f9c6a91fef72410cb912b75e1b886b16e (patch)
tree0e113c30ce76e2db452edd2b16aa65967e97468f /src/libslic3r/SLA
parent1256aebd889222971825faf917ddc20e22b15b56 (diff)
TriangleMeshSlicer: Got rid of admesh!
Diffstat (limited to 'src/libslic3r/SLA')
-rw-r--r--src/libslic3r/SLA/Hollowing.cpp5
-rw-r--r--src/libslic3r/SLA/Pad.cpp4
-rw-r--r--src/libslic3r/SLA/SupportTree.cpp6
3 files changed, 8 insertions, 7 deletions
diff --git a/src/libslic3r/SLA/Hollowing.cpp b/src/libslic3r/SLA/Hollowing.cpp
index f55a10178..1d3016bde 100644
--- a/src/libslic3r/SLA/Hollowing.cpp
+++ b/src/libslic3r/SLA/Hollowing.cpp
@@ -296,9 +296,8 @@ void cut_drainholes(std::vector<ExPolygons> & obj_slices,
if (mesh.empty()) return;
mesh.require_shared_vertices();
-
- std::vector<ExPolygons> hole_slices;
- slice_mesh(mesh, slicegrid, closing_radius, hole_slices, thr);
+
+ std::vector<ExPolygons> hole_slices = slice_mesh_ex(mesh.its, slicegrid, closing_radius, thr);
if (obj_slices.size() != hole_slices.size())
BOOST_LOG_TRIVIAL(warning)
diff --git a/src/libslic3r/SLA/Pad.cpp b/src/libslic3r/SLA/Pad.cpp
index 658ecf6d8..bf2b4cf54 100644
--- a/src/libslic3r/SLA/Pad.cpp
+++ b/src/libslic3r/SLA/Pad.cpp
@@ -478,8 +478,8 @@ void pad_blueprint(const TriangleMesh & mesh,
{
if (mesh.empty()) return;
- auto out = reserve_vector<ExPolygons>(heights.size());
- slice_mesh(mesh, heights, out, thrfn);
+ assert(mesh.has_shared_vertices());
+ std::vector<ExPolygons> out = slice_mesh_ex(mesh.its, heights, thrfn);
size_t count = 0;
for(auto& o : out) count += o.size();
diff --git a/src/libslic3r/SLA/SupportTree.cpp b/src/libslic3r/SLA/SupportTree.cpp
index 45e90a704..14a4dc360 100644
--- a/src/libslic3r/SLA/SupportTree.cpp
+++ b/src/libslic3r/SLA/SupportTree.cpp
@@ -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();