belt: expose MachineFrameTransform's composed matrix

Add a const accessor for the shear*scale transform so the G-code viewer can
build the machine->model back-transform for the upright belt preview.
This commit is contained in:
Tommaso Bianchi
2026-06-06 16:00:37 +02:00
parent 340ce575e2
commit 2d69f6e17c

View File

@@ -33,6 +33,11 @@ public:
bool is_active() const { return m_active; }
// The composed shear*scale transform (identity when inactive). Exposed so the
// G-code viewer can build the machine->model back-transform for the upright
// ("designed") belt preview.
const Transform3d& transform() const { return m_transform; }
private:
bool m_active = false;
Transform3d m_transform = Transform3d::Identity();