mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 21:27:52 -06:00
Fixed compilation and test cases.
This commit is contained in:
parent
33e1108f65
commit
fca7c8abfe
2 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ bool Print::invalidate_state_by_config_options(const std::vector<t_config_option
|
||||||
"wipe"
|
"wipe"
|
||||||
};
|
};
|
||||||
|
|
||||||
static std::unordered_set<std::string> steps_ignore = {};
|
static std::unordered_set<std::string> steps_ignore;
|
||||||
|
|
||||||
std::vector<PrintStep> steps;
|
std::vector<PrintStep> steps;
|
||||||
std::vector<PrintObjectStep> osteps;
|
std::vector<PrintObjectStep> osteps;
|
||||||
|
|
|
@ -134,7 +134,7 @@ public:
|
||||||
typedef std::function<void()> throw_on_cancel_callback_type;
|
typedef std::function<void()> throw_on_cancel_callback_type;
|
||||||
TriangleMeshSlicer() : mesh(nullptr) {}
|
TriangleMeshSlicer() : mesh(nullptr) {}
|
||||||
// Not quite nice, but the constructor and init() methods require non-const mesh pointer to be able to call mesh->require_shared_vertices()
|
// Not quite nice, but the constructor and init() methods require non-const mesh pointer to be able to call mesh->require_shared_vertices()
|
||||||
TriangleMeshSlicer(TriangleMesh* mesh) { this->init(mesh, throw_on_cancel_callback_type()); }
|
TriangleMeshSlicer(TriangleMesh* mesh) { this->init(mesh, [](){}); }
|
||||||
void init(TriangleMesh *mesh, throw_on_cancel_callback_type throw_on_cancel);
|
void init(TriangleMesh *mesh, throw_on_cancel_callback_type throw_on_cancel);
|
||||||
void slice(const std::vector<float> &z, std::vector<Polygons>* layers, throw_on_cancel_callback_type throw_on_cancel) const;
|
void slice(const std::vector<float> &z, std::vector<Polygons>* layers, throw_on_cancel_callback_type throw_on_cancel) const;
|
||||||
void slice(const std::vector<float> &z, std::vector<ExPolygons>* layers, throw_on_cancel_callback_type throw_on_cancel) const;
|
void slice(const std::vector<float> &z, std::vector<ExPolygons>* layers, throw_on_cancel_callback_type throw_on_cancel) const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue