Feature boundary test lxy (#128)

* Add Boundary validator

* Boundary test ui

* refect & optimize boundary validation
This commit is contained in:
xiaoyeliu
2026-01-21 19:52:11 +08:00
committed by GitHub
parent 9cee21e0bf
commit a1769a2148
28 changed files with 6097 additions and 23 deletions
+14
View File
@@ -11,6 +11,10 @@
namespace Slic3r {
// Forward declarations
class BoundaryValidator;
class Print;
class GCodeWriter {
public:
GCodeConfig config;
@@ -119,6 +123,12 @@ public:
void set_is_first_layer(bool bval) { m_is_first_layer = bval; }
GCodeFlavor get_gcode_flavor() const { return config.gcode_flavor; }
// Snapmaker: Set boundary validator for arc path validation
void set_boundary_validator(const BoundaryValidator* validator, Print* print_ptr = nullptr) {
m_boundary_validator = validator;
m_print_ptr = print_ptr;
}
// Returns whether this flavor supports separate print and travel acceleration.
static bool supports_separate_travel_acceleration(GCodeFlavor flavor);
private:
@@ -170,6 +180,10 @@ public:
double m_current_speed;
bool m_is_first_layer = true;
// Snapmaker: Boundary validator for arc path validation
const BoundaryValidator* m_boundary_validator = nullptr;
Print* m_print_ptr = nullptr;
enum class Acceleration {
Travel,
Print