Add a Sparse infill only mode to Arc fitting (#16747)

This commit is contained in:
Ian Bassi authored and GitHub committed 2026-10-22 12:51:44 -03:00
1 parent 3f8ff53e65
commit 373ffaa13f
13 files changed
+114 -61

No files matched your search

+1 -1
View File
@@ -9900,7 +9900,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, const std::string &path_d
}
// BBS: use G1 if not enable arc fitting or has no arc fitting result or in spiral_mode mode or we are doing sloped extrusion
// Attention: G2 and G3 is not supported in spiral_mode mode
if (!m_config.enable_arc_fitting || path.polyline.fitting_result.empty() || m_config.spiral_mode || sloped != nullptr || path.z_contoured || this->should_disable_arc_fitting()) {
if (m_config.enable_arc_fitting.value == ArcFittingMode::Disabled || path.polyline.fitting_result.empty() || m_config.spiral_mode || sloped != nullptr || path.z_contoured || this->should_disable_arc_fitting()) {
double path_length = 0.;
double total_length = sloped == nullptr ? 0. : path.polyline.length() * SCALING_FACTOR;
double saved_z = m_writer.get_position().z();