mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-11 17:18:59 +08:00
Make actually buildable in Ubuntu.
This commit is contained in:
parent
9309ef90a8
commit
c63f0d2870
@ -2,6 +2,7 @@
|
||||
///|/
|
||||
///|/ PrusaSlicer is released under the terms of the AGPLv3 or higher
|
||||
///|/
|
||||
#include <numeric>
|
||||
#include "Emboss.hpp"
|
||||
#include <stdio.h>
|
||||
#include <cstdlib>
|
||||
@ -562,7 +563,7 @@ Duplicates collect_duplicit_indices(const ExPolygons &expoly)
|
||||
|
||||
// initialize original index locations
|
||||
std::vector<uint32_t> idx(pts.size());
|
||||
iota(idx.begin(), idx.end(), 0);
|
||||
std::iota(idx.begin(), idx.end(), 0);
|
||||
std::sort(idx.begin(), idx.end(),
|
||||
[&pts](uint32_t i1, uint32_t i2) { return pts[i1] < pts[i2]; });
|
||||
|
||||
@ -2218,4 +2219,4 @@ void remove_spikes(ExPolygons &expolygons, const SpikeDesc &spike_desc)
|
||||
remove_bad(expolygons);
|
||||
}
|
||||
|
||||
#endif // REMOVE_SPIKES
|
||||
#endif // REMOVE_SPIKES
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <charconv> // to_chars
|
||||
|
||||
#include <boost/nowide/iostream.hpp>
|
||||
#include <boost/nowide/fstream.hpp>
|
||||
#include "ClipperUtils.hpp"
|
||||
#include "Emboss.hpp" // heal for shape
|
||||
|
||||
@ -521,4 +522,4 @@ HealedExPolygons stroke_to_expolygons(const LinesPath &lines_path, const NSVGsha
|
||||
return Emboss::heal_polygons(result, is_non_zero, param.max_heal_iteration);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
@ -1,6 +1,10 @@
|
||||
#include "IconManager.hpp"
|
||||
#include <cmath>
|
||||
#include <numeric>
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <boost/nowide/cstdio.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include "nanosvg/nanosvg.h"
|
||||
#include "nanosvg/nanosvgrast.h"
|
||||
#include "libslic3r/Utils.hpp" // ScopeGuard
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include <stdexcept>
|
||||
#include <type_traits>
|
||||
#include <boost/log/trivial.hpp>
|
||||
|
||||
#include <libslic3r/Model.hpp>
|
||||
#include <libslic3r/Format/OBJ.hpp> // load_obj for default mesh
|
||||
|
Loading…
x
Reference in New Issue
Block a user