Skip to content

Commit

Permalink
Include geometry/LinesSet.h in multiple source files
Browse files Browse the repository at this point in the history
The necessary header geometry/LinesSet.h has been included into multiple files across the project. This marks an important step for functionality expansion as the new header file has updated geometrical methods that are crucial for the application to function optimally. Copyright years in certain files were also updated.

Contribute to CURA-9830
  • Loading branch information
jellespijker committed May 6, 2024
1 parent fdeb565 commit f8bc709
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 16 deletions.
3 changes: 2 additions & 1 deletion benchmark/infill_benchmark.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 UltiMaker
// Copyright (c) 2024 UltiMaker
// CuraEngine is released under the terms of the AGPLv3 or higher

#ifndef CURAENGINE_INFILL_BENCHMARK_H
Expand All @@ -8,6 +8,7 @@

#include "geometry/OpenLinesSet.h"
#include "geometry/OpenPolyline.h"
#include "geometry/LinesSet.h"
#include "infill.h"

namespace cura
Expand Down
2 changes: 2 additions & 0 deletions include/LayerPlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "PathOrderOptimizer.h"
#include "SpaceFillType.h"
#include "gcodeExport.h"
#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "geometry/Polygon.h"
#include "pathPlanning/GCodePath.h"
#include "pathPlanning/NozzleTempInsert.h"
Expand Down
2 changes: 2 additions & 0 deletions include/TreeSupportTipGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "TreeSupportEnums.h"
#include "TreeSupportSettings.h"
#include "boost/functional/hash.hpp" // For combining hashes
#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "geometry/Polygon.h"
#include "polyclipping/clipper.hpp"
#include "settings/EnumSettings.h"
Expand Down
2 changes: 2 additions & 0 deletions include/TreeSupportUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include "TreeSupportEnums.h"
#include "TreeSupportSettings.h"
#include "boost/functional/hash.hpp" // For combining hashes
#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "geometry/OpenPolyline.h"
#include "geometry/Polygon.h"
#include "infill.h"
Expand Down
2 changes: 2 additions & 0 deletions include/infill.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include <range/v3/range/concepts.hpp>

#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "geometry/Point2LL.h"
#include "infill/LightningGenerator.h"
#include "infill/ZigzagConnectorProcessor.h"
Expand Down
7 changes: 3 additions & 4 deletions include/infill/GyroidInfill.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Copyright (c) 2020 Ultimaker B.V.
// Copyright (c) 2024 UltiMaker
// CuraEngine is released under the terms of the AGPLv3 or higher.

#include "../utils/Coord_t.h"
#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "utils/Coord_t.h"

namespace cura
{

class Shape;

class GyroidInfill
Expand Down Expand Up @@ -38,5 +38,4 @@ class GyroidInfill

private:
};

} // namespace cura
9 changes: 5 additions & 4 deletions include/infill/LightningLayer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 UltiMaker
// Copyright (c) 2024 UltiMaker
// CuraEngine is released under the terms of the AGPLv3 or higher

#ifndef LIGHTNING_LAYER_H
Expand All @@ -9,9 +9,11 @@
#include <unordered_map>
#include <vector>

#include "../utils/SquareGrid.h"
#include "../utils/polygonUtils.h"
#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "infill/LightningTreeNode.h"
#include "utils/SquareGrid.h"
#include "utils/polygonUtils.h"

namespace cura
{
Expand Down Expand Up @@ -74,7 +76,6 @@ class LightningLayer

void fillLocator(SparseLightningTreeNodeGrid& tree_node_locator);
};

} // namespace cura

#endif // LIGHTNING_LAYER_H
4 changes: 3 additions & 1 deletion include/infill/LightningTreeNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
#include <optional>
#include <vector>

#include "../utils/polygonUtils.h"
#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "geometry/Polygon.h"
#include "geometry/Shape.h"
#include "utils/polygonUtils.h"

namespace cura
{
Expand Down
13 changes: 7 additions & 6 deletions include/infill/NoZigZagConnectorProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#define INFILL_NO_ZIGZAG_CONNECTOR_PROCESSOR_H

#include "ZigzagConnectorProcessor.h"
#include "geometry/OpenLinesSet.h"

namespace cura
{
Expand All @@ -22,12 +23,12 @@ class NoZigZagConnectorProcessor : public ZigzagConnectorProcessor
public:
NoZigZagConnectorProcessor(const PointMatrix& rotation_matrix, OpenLinesSet& result)
: ZigzagConnectorProcessor(
rotation_matrix,
result,
false,
false, // settings for zig-zag end pieces, no use here
false,
0) // settings for skipping some zags, no use here
rotation_matrix,
result,
false,
false, // settings for zig-zag end pieces, no use here
false,
0) // settings for skipping some zags, no use here
{
}

Expand Down
2 changes: 2 additions & 0 deletions include/plugins/converters.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include "cura/plugins/slots/postprocess/v0/modify.pb.h"
#include "cura/plugins/slots/simplify/v0/modify.grpc.pb.h"
#include "cura/plugins/slots/simplify/v0/modify.pb.h"
#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "geometry/Polygon.h"
#include "pathPlanning/GCodePath.h"
#include "pathPlanning/SpeedDerivatives.h"
Expand Down
2 changes: 2 additions & 0 deletions include/plugins/slots.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include "cura/plugins/slots/postprocess/v0/modify.grpc.pb.h"
#include "cura/plugins/slots/simplify/v0/modify.grpc.pb.h"
#include "cura/plugins/v0/slot_id.pb.h"
#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "geometry/Point2LL.h"
#include "geometry/Polygon.h"
#include "infill.h"
Expand Down
1 change: 1 addition & 0 deletions include/slicer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <queue>
#include <unordered_map>

#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "geometry/OpenPolyline.h"
#include "geometry/Shape.h"
Expand Down
1 change: 1 addition & 0 deletions include/utils/MixedPolylineStitcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "PolylineStitcher.h"
#include "geometry/ClosedLinesSet.h"
#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"

namespace cura
Expand Down
1 change: 1 addition & 0 deletions include/utils/OpenPolylineStitcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#define UTILS_OPEN_POLYLINE_STITCHER_H

#include "PolylineStitcher.h"
#include "geometry/LinesSet.h"
#include "geometry/OpenLinesSet.h"
#include "geometry/Shape.h"

Expand Down
1 change: 1 addition & 0 deletions src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "bridge.h"
#include "communication/Communication.h" //To send layer view data.
#include "geometry/OpenPolyline.h"
#include "geometry/LinesSet.h"
#include "geometry/PointMatrix.h"
#include "infill.h"
#include "progress/Progress.h"
Expand Down

0 comments on commit f8bc709

Please sign in to comment.