From 58754264c6ae92764d5ff2559717624e86126ebc Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 25 Mar 2025 17:44:33 +0100 Subject: [PATCH] FIX: Fix missing union_ex/offset_ex declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /run/build/BambuStudio/src/libslic3r/Interlocking/InterlockingGenerator.cpp: In member function ‘std::pair, std::vector > Slic3r::InterlockingGenerator::growBorderAreasPerpendicular(const Slic3r::ExPolygons&, const Slic3r::ExPolygons&, const coord_t&) const’: /run/build/BambuStudio/src/libslic3r/Interlocking/InterlockingGenerator.cpp:70:56: error: ‘offset_ex’ was not declared in this scope; did you mean ‘offsetof’? 70 | const ExPolygons total_shrunk = offset_ex(union_ex(offset_ex(a, min_line), offset_ex(b, min_line)), 2 * -min_line); | ^~~~~~~~~ | offsetof /run/build/BambuStudio/src/libslic3r/Interlocking/InterlockingGenerator.cpp:70:47: error: ‘union_ex’ was not declared in this scope; did you mean ‘union’? 70 | const ExPolygons total_shrunk = offset_ex(union_ex(offset_ex(a, min_line), offset_ex(b, min_line)), 2 * -min_line); | ^~~~~~~~ | union --- src/libslic3r/Interlocking/InterlockingGenerator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libslic3r/Interlocking/InterlockingGenerator.cpp b/src/libslic3r/Interlocking/InterlockingGenerator.cpp index 5a9fc21d6..a52c92dc0 100644 --- a/src/libslic3r/Interlocking/InterlockingGenerator.cpp +++ b/src/libslic3r/Interlocking/InterlockingGenerator.cpp @@ -1,6 +1,7 @@ // Copyright (c) 2023 UltiMaker // CuraEngine is released under the terms of the AGPLv3 or higher. +#include "ClipperUtils.hpp" #include "InterlockingGenerator.hpp" #include "Layer.hpp"