mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH: add acceleration para
thanks SoftFever Signed-off-by: qing.zhang <qing.zhang@bambulab.com> Change-Id: Ie82934e2fb5cdb4ec77246e2d5cd6be36fdc7d5a
This commit is contained in:
parent
9b5a86ba01
commit
ec756bc2df
7 changed files with 31 additions and 4 deletions
|
@ -3808,6 +3808,10 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
|
|||
acceleration = m_config.outer_wall_acceleration.value;
|
||||
} else if (m_config.top_surface_acceleration.value > 0 && is_top_surface(path.role())) {
|
||||
acceleration = m_config.top_surface_acceleration.value;
|
||||
} else if (m_config.inner_wall_acceleration.value > 0 && path.role() == erPerimeter) {
|
||||
acceleration = m_config.inner_wall_acceleration.value;
|
||||
} else if (m_config.get_abs_value("sparse_infill_acceleration") > 0 && (path.role() == erInternalInfill)) {
|
||||
acceleration = m_config.get_abs_value("sparse_infill_acceleration");
|
||||
} else {
|
||||
acceleration = m_config.default_acceleration.value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue