Part 2.7: Add G-code back-transform and tree support belt floor clipping

- Add BeltBackTransform class that inverts the shear/scale matrix and
  applies it in GCodeWriter::to_machine_coords() so G-code outputs in
  the machine's physical coordinate space, gated by new
  belt_gcode_back_transform config option
- Extend belt floor clipping to all three tree support pipelines
  (Prusa-style, Orca organic, TreeModelVolumes) with per-layer polygon
  clipping, anti-overhang integration, and belt raft extension layers
- Fix tree drop_nodes() belt termination, organic support global Z
  offset, collision calculation index bug, and first-layer brim/empty
  layer checks for belt printers

two-shot - first build built but didn't plumb to UI.  Woah.

add pre-slice axis remap, because Y needs to be Z

going to change tactic and move based on bbox min

switch to per axis snapping

per axis swap snap now per object

build plate tilt wasn't invalidating slicer settings

support upper bound now correct, need to get lower bound corrected

axis swapped support termination corrected

Z Shear works with and without pre-slice remap now
This commit is contained in:
harrierpigeon
2026-03-25 22:19:31 -05:00
committed by Joseph Robertson
parent 7ff6bc42b1
commit b297f68921
20 changed files with 767 additions and 36 deletions

View File

@@ -246,6 +246,9 @@ class Print;
float belt_scale_y_angle{ 45.f };
BeltScaleMode belt_scale_z{ BeltScaleMode::None };
float belt_scale_z_angle{ 45.f };
BeltRemapAxis belt_preslice_remap_x{ BeltRemapAxis::PosX };
BeltRemapAxis belt_preslice_remap_y{ BeltRemapAxis::PosY };
BeltRemapAxis belt_preslice_remap_z{ BeltRemapAxis::PosZ };
SettingsIds settings_ids;
size_t filaments_count;
bool backtrace_enabled;
@@ -321,6 +324,9 @@ class Print;
belt_scale_y_angle = other.belt_scale_y_angle;
belt_scale_z = other.belt_scale_z;
belt_scale_z_angle = other.belt_scale_z_angle;
belt_preslice_remap_x = other.belt_preslice_remap_x;
belt_preslice_remap_y = other.belt_preslice_remap_y;
belt_preslice_remap_z = other.belt_preslice_remap_z;
#if ENABLE_GCODE_VIEWER_STATISTICS
time = other.time;
#endif