mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-28 10:20:33 -07:00
FIX: Fix missing diff/intersection/etc. declaration
/run/build/BambuStudio/src/libslic3r/PrintApply.cpp:313:28: error: ‘diff’ was not declared in this scope
313 | Polygons res = diff(printable_poly, poly);
| ^~~~
/run/build/BambuStudio/src/libslic3r/PrintApply.cpp:317:39: error: ‘intersection’ was not declared in this scope; did you mean ‘Slic3r::line_alg::intersection’?
317 | Polygons all_extruder_polys = intersection({printable_poly}, extruder_polys);
| ^~~~~~~~~~~~
| Slic3r::line_alg::intersection
In file included from /run/build/BambuStudio/src/libslic3r/Polygon.hpp:7,
from /run/build/BambuStudio/src/libslic3r/BoundingBox.hpp:7,
from /run/build/BambuStudio/src/libslic3r/Geometry.hpp:5,
from /run/build/BambuStudio/src/libslic3r/Model.hpp:6:
/run/build/BambuStudio/src/libslic3r/Line.hpp:123:24: note: ‘Slic3r::line_alg::intersection’ declared here
123 | template<class L> bool intersection(const L &l1, const L &l2, Vec<Dim<L>, Scalar<L>> *intersection_pt)
| ^~~~~~~~~~~~
/run/build/BambuStudio/src/libslic3r/PrintApply.cpp: In lambda function:
/run/build/BambuStudio/src/libslic3r/PrintApply.cpp:323:22: error: ‘intersection’ is not captured
323 | if (!intersection(poly, contours[i]).empty()) { result.insert(static_cast<int>(i)); }
| ^~~~~~~~~~~~
(cherry picked from commit 00f4bbef9bcab1d7bb15ccfaf7bb4d3208b4bd12)
This commit is contained in:
parent
61a3d11fc6
commit
c9a2cb7753
1 changed files with 1 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#include "ClipperUtils.hpp"
|
||||
#include "Model.hpp"
|
||||
#include "Print.hpp"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue