mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 13:34:05 -06:00
Ported Print::validate() to XS
This commit is contained in:
parent
3e4c572164
commit
bad0bd8520
10 changed files with 148 additions and 75 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <myinit.h>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#include <stdexcept>
|
||||
#include "Flow.hpp"
|
||||
#include "PrintConfig.hpp"
|
||||
#include "Point.hpp"
|
||||
|
@ -27,6 +28,11 @@ enum PrintObjectStep {
|
|||
posInfill, posSupportMaterial,
|
||||
};
|
||||
|
||||
class PrintValidationException : public std::runtime_error {
|
||||
public:
|
||||
PrintValidationException(const std::string &error) : std::runtime_error(error) {};
|
||||
};
|
||||
|
||||
template <class StepType>
|
||||
class PrintState
|
||||
{
|
||||
|
@ -171,6 +177,7 @@ class Print
|
|||
void add_model_object(ModelObject* model_object, int idx = -1);
|
||||
bool apply_config(DynamicPrintConfig config);
|
||||
void init_extruders();
|
||||
void validate() const;
|
||||
|
||||
std::set<size_t> extruders() const;
|
||||
void _simplify_slices(double distance);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue