mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 12:42:02 +08:00

Fix compilation on Windows Fix array subscript out of range error in MarchingSquares Fix normals of mesh constructed from slices Improve performance of mesh construction from slices
37 lines
904 B
C++
37 lines
904 B
C++
#ifndef SLAIMPORT_HPP
|
|
#define SLAIMPORT_HPP
|
|
|
|
#include <functional>
|
|
|
|
#include <libslic3r/Point.hpp>
|
|
#include <libslic3r/TriangleMesh.hpp>
|
|
#include <libslic3r/PrintConfig.hpp>
|
|
|
|
namespace Slic3r {
|
|
|
|
class TriangleMesh;
|
|
class DynamicPrintConfig;
|
|
|
|
void import_sla_archive(const std::string &zipfname, DynamicPrintConfig &out);
|
|
|
|
void import_sla_archive(
|
|
const std::string & zipfname,
|
|
Vec2i windowsize,
|
|
TriangleMesh & out,
|
|
DynamicPrintConfig & profile,
|
|
std::function<bool(int)> progr = [](int) { return true; });
|
|
|
|
inline void import_sla_archive(
|
|
const std::string & zipfname,
|
|
Vec2i windowsize,
|
|
TriangleMesh & out,
|
|
std::function<bool(int)> progr = [](int) { return true; })
|
|
{
|
|
DynamicPrintConfig profile;
|
|
import_sla_archive(zipfname, windowsize, out, profile, progr);
|
|
}
|
|
|
|
}
|
|
|
|
#endif // SLAIMPORT_HPP
|