mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-13 23:43:03 +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;
|
||||
}
|
||||
|
||||
void CalibPressureAdvancePattern::translate_starting_point(const Vec3d displacement)
|
||||
{
|
||||
m_starting_point += displacement;
|
||||
m_last_pos = m_starting_point;
|
||||
};
|
||||
|
||||
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); };
|
||||
|
||||
void starting_point(Vec3d pt);
|
||||
void translate_starting_point(const Vec3d displacement);
|
||||
|
||||
CustomGCode::Info generate_gcodes();
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user