mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 11:07:40 +00:00
Add max_numbering_height function
This commit is contained in:
@@ -41,6 +41,7 @@ private:
|
||||
std::string draw_digit(double startx, double starty, char c, calib_pressure_advance::DrawDigitMode mode);
|
||||
std::string draw_number(double startx, double starty, double value, calib_pressure_advance::DrawDigitMode mode);
|
||||
private:
|
||||
double m_digit_len {2};
|
||||
int m_max_number_length {5};
|
||||
double m_number_spacing {3.0};
|
||||
}
|
||||
@@ -87,8 +88,8 @@ class calib_pressure_advance_pattern: public calib_pressure_advance
|
||||
double line_spacing() { return line_width() - mp_gcodegen->config().layer_height.value * (1 - M_PI / 4); };
|
||||
double line_spacing_anchor() { return line_width_anchor() - mp_gcodegen->config().initial_layer_print_height.value * (1 - M_PI / 4); };
|
||||
double line_spacing_angle() { return line_spacing() / sin(to_radians(m_corner_angle) / 2); };
|
||||
private:
|
||||
std::string move_to(Vec2d pt);
|
||||
|
||||
double max_numbering_height();
|
||||
private:
|
||||
Gcode* mp_gcodegen;
|
||||
int m_anchor_layer_line_ratio {140};
|
||||
|
||||
Reference in New Issue
Block a user