mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-11 08:04:25 +00:00
217477a9ff
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
|