Fixing the slice_mesh() after recent refactoring.

This commit is contained in:
Vojtech Bubnik 2021-05-19 16:09:45 +02:00
parent 31942e03db
commit 116e2b2112

View file

@ -1075,7 +1075,7 @@ std::vector<Polygons> slice_mesh(
auto t = params.trafo;
t.prescale(Vec3d(s, s, 1.));
auto tf = t.cast<float>();
slice_make_lines(mesh.vertices, [tf](const Vec3f &p) { return tf * p; }, mesh.indices, facets_edges, zs, throw_on_cancel);
lines = slice_make_lines(mesh.vertices, [tf](const Vec3f &p) { return tf * p; }, mesh.indices, facets_edges, zs, throw_on_cancel);
}
} else {
// Copy and scale vertices in XY, don't scale in Z.