step one: post-process analysis

This commit is contained in:
HarrierPigeon
2026-05-25 17:01:13 -06:00
committed by harrierpigeon
parent b61ba98183
commit 8f6802fff8
4 changed files with 71 additions and 23 deletions

View File

@@ -31,6 +31,11 @@ public:
// Apply the transform to a point. Returns pos unchanged if not active.
Vec3d apply(const Vec3d &pos) const;
// Apply the inverse transform. Returns pos unchanged if not active.
// Used by validators that need to compare emitted machine-frame
// coordinates against build-volume bounds.
Vec3d apply_inverse(const Vec3d &pos) const;
bool is_active() const { return m_active; }
// The composed shear*scale transform (identity when inactive). Exposed so the
@@ -39,8 +44,9 @@ public:
const Transform3d& transform() const { return m_transform; }
private:
bool m_active = false;
Transform3d m_transform = Transform3d::Identity();
bool m_active = false;
Transform3d m_transform = Transform3d::Identity();
Transform3d m_transform_inverse = Transform3d::Identity();
};
} // namespace Slic3r