feat: Z Anti-Aliasing (ZAA) non-planar contouring#9727
feat: Z Anti-Aliasing (ZAA) non-planar contouring#9727mnott wants to merge 2 commits intobambulab:masterfrom
Conversation
Port of ZAA from BambuStudio-ZAA (github.com/adob/BambuStudio-ZAA) to stock BambuStudio. ZAA eliminates stair-stepping on curved surfaces by raycasting each extrusion point against the mesh and adjusting Z height to follow the true surface geometry. Changes: - Core algorithm: ContourZ.cpp (~330 lines) performs vertical raycasting - 3D geometry: Point3, Line3, Polyline3, MultiPoint3 extensions - ExtrusionPath::polyline changed from Polyline to Polyline3 - GCode writer emits per-point Z when path.z_contoured is set - Pipeline step posContouring in PrintObject after perimeter/infill gen - 5 new print settings under Quality (zaa_enabled, zaa_min_z, etc.) - GUI integration: config options, preset registration, search support - Guard for missing resources/nonplanar/ directory - cmake_minimum_required bumped to 3.5 for CMake 4.x compatibility - Build script, build guide, and release guide for macOS
- Change SLIC3R_VERSION from 02.05.01.52 to 02.05.00.52 to match the network plugin available on Bambu's servers (02.05.00.56). The first 8 chars must match for check_networking_version(). - Force ignore_module_cert=true since our Developer ID certificate differs from Bambu Lab's, causing IsSamePublisher() to reject the downloaded plugin.
|
\o/ this would be great to have in a released version of BambuStudio! Thanks for doing the work of getting an MR put together. |
|
Great work, tried this with cursor 0claude 4.6 spend 50$ on api and it didnt manage, Kudos to the developers !!!! |
|
Oh this could be interesting! I've wondered about the possibility of anti-aliasing before just using a series of 'substeps' in the perimeters. I actually downloaded the flatpak artifact from the pr but I'm not seeing the effect in the slicer. I'm dying to see it in action - good luck with the merge |
Summary
Adds Z Anti-Aliasing (ZAA) — a non-planar contouring post-processing step that smooths staircase artifacts on curved surfaces by micro-adjusting Z heights during extrusion. Based on the BambuStudio-ZAA implementation by AdoC3.
Changes
src/libslic3r/NonplanarSurface/GCode.cppandGCodeWriter.cppbuild.shfor macOS,BUILD.mdwalkthroughdocs/ZAA.mdTest plan