mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 11:07:40 +00:00
Add translate_starting_point function
This commit is contained in:
@@ -358,6 +358,10 @@ void CalibPressureAdvancePattern::starting_point(Vec3d pt)
|
|||||||
m_last_pos = m_starting_point;
|
m_last_pos = m_starting_point;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CalibPressureAdvancePattern::translate_starting_point(const Vec3d displacement)
|
||||||
|
{
|
||||||
|
m_starting_point += displacement;
|
||||||
|
m_last_pos = m_starting_point;
|
||||||
};
|
};
|
||||||
|
|
||||||
CustomGCode::Info CalibPressureAdvancePattern::generate_gcodes()
|
CustomGCode::Info CalibPressureAdvancePattern::generate_gcodes()
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ public:
|
|||||||
double max_layer_z() { return m_height_first_layer + ((m_num_layers - 1) * m_height_layer); };
|
double max_layer_z() { return m_height_first_layer + ((m_num_layers - 1) * m_height_layer); };
|
||||||
|
|
||||||
void starting_point(Vec3d pt);
|
void starting_point(Vec3d pt);
|
||||||
|
void translate_starting_point(const Vec3d displacement);
|
||||||
|
|
||||||
CustomGCode::Info generate_gcodes();
|
CustomGCode::Info generate_gcodes();
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Reference in New Issue
Block a user