mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
fix probe count for adaptive bed mesh (#11491)
fix probe_count in adaptive bed mesh
This commit is contained in:
@@ -2727,8 +2727,8 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||||||
|
|
||||||
auto probe_dist_x = std::max(1., m_config.bed_mesh_probe_distance.value.x());
|
auto probe_dist_x = std::max(1., m_config.bed_mesh_probe_distance.value.x());
|
||||||
auto probe_dist_y = std::max(1., m_config.bed_mesh_probe_distance.value.y());
|
auto probe_dist_y = std::max(1., m_config.bed_mesh_probe_distance.value.y());
|
||||||
int probe_count_x = std::max(3, (int) std::ceil(mesh_bbox.size().x() / probe_dist_x));
|
int probe_count_x = std::max(3, (int) std::ceil(mesh_bbox.size().x() / probe_dist_x) + 1);
|
||||||
int probe_count_y = std::max(3, (int) std::ceil(mesh_bbox.size().y() / probe_dist_y));
|
int probe_count_y = std::max(3, (int) std::ceil(mesh_bbox.size().y() / probe_dist_y) + 1);
|
||||||
auto bed_mesh_algo = "bicubic";
|
auto bed_mesh_algo = "bicubic";
|
||||||
if (probe_count_x * probe_count_y <= 6) { // lagrange needs up to a total of 6 mesh points
|
if (probe_count_x * probe_count_y <= 6) { // lagrange needs up to a total of 6 mesh points
|
||||||
bed_mesh_algo = "lagrange";
|
bed_mesh_algo = "lagrange";
|
||||||
|
|||||||
Reference in New Issue
Block a user