Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
9.32k stars 5.28k forks source link

Fix adaptive probe count on delta printers #6600

Closed voidtrance closed 4 months ago

voidtrance commented 4 months ago

Round beds require an odd number of probe points in order to prevent erroneously truncating the mesh.

The adaptive mesh algorithm did not consider that and as a result, it was possible to generate adaptive meshes with even number of probe points.

This change fixes this by increasing the probe point count by 1 in cases where the adaptive probe points are even.

voidtrance commented 4 months ago

@Arksine, would you mind reviewing this?

yzheka commented 4 months ago

I have tested it on kossel linear plus and now adaptive bed mesh works without problems for me.

Arksine commented 4 months ago

The change looks good to me. Thanks.

KevinOConnor commented 4 months ago

Thanks.

-Kevin