From b51a0ea63ebb767bbef36281037ee6f6da38f30e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 8 Aug 2024 17:18:56 +0200 Subject: factor out hole-making code for UVs --- src/hole-cut.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/hole-cut.hpp') diff --git a/src/hole-cut.hpp b/src/hole-cut.hpp index 48a1b1fc..6f4d5876 100644 --- a/src/hole-cut.hpp +++ b/src/hole-cut.hpp @@ -14,10 +14,12 @@ struct CutResult static CutResult cut(bbox input, bbox hole); static CutResult cut(Vec2 r0, Vec2 r1, Vec2 h0, Vec2 h1); + static CutResult cutʹ(Vec2 r0, Vec2 r1, Vec2 h0, Vec2 h1, uint8_t s); + uint8_t s = (uint8_t)-1, size = 0; std::array array; - uint8_t size = 0; - bool found = false; + + bool found() const; }; } // namespace floormat -- cgit v1.2.3