Skip to content

Commit

Permalink
Merge branch 'libArachne_rebased'
Browse files Browse the repository at this point in the history
Conflicts:
	src/FffGcodeWriter.cpp -> Minor type casting of integer types nearby changed code.
	src/LayerPlan.cpp -> Master added some filters for short travel moves, where Arachne changed up the line planning completely.
  • Loading branch information
Ghostkeeper committed Dec 14, 2021
2 parents 10f2c90 + 5cd30a2 commit df96b2f
Show file tree
Hide file tree
Showing 165 changed files with 12,129 additions and 6,060 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/cicd-mingw64.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## ignore such files
*.tar.bz2
*.tar.gz
*.7z
Expand All @@ -15,6 +16,7 @@ callgrind/*
## Building result.
build/*
debug_build/*
release_build/*
cmake-build-debug/*
libs/stb
*.pyc
Expand Down
74 changes: 54 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Copyright (c) 2020 Ultimaker B.V.
#Copyright (c) 2021 Ultimaker B.V.
#CuraEngine is released under the terms of the AGPLv3 or higher.

cmake_minimum_required(VERSION 3.8.0)
Expand Down Expand Up @@ -32,6 +32,10 @@ endif()
find_package(Stb REQUIRED)
include_directories(${Stb_INCLUDE_DIRS})

#arachne needs boost polygon/voronoi
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})

option(USE_SYSTEM_LIBS "Use the system libraries if available" OFF)
if(USE_SYSTEM_LIBS)
find_package(RapidJSON CONFIG REQUIRED)
Expand Down Expand Up @@ -149,17 +153,18 @@ set(engine_SRCS # Except main.cpp.
src/layerPart.cpp
src/LayerPlan.cpp
src/LayerPlanBuffer.cpp
src/MergeInfillLines.cpp
src/mesh.cpp
src/MeshGroup.cpp
src/Mold.cpp
src/multiVolumes.cpp
src/PathOrderOptimizer.cpp
src/PathOrder.cpp
src/pathOrderOptimizer.cpp
src/Preheat.cpp
src/PrimeTower.cpp
src/raft.cpp
src/Scene.cpp
src/SkeletalTrapezoidation.cpp
src/SkeletalTrapezoidationGraph.cpp
src/skin.cpp
src/SkirtBrim.cpp
src/SupportInfillPart.cpp
Expand All @@ -171,9 +176,19 @@ set(engine_SRCS # Except main.cpp.
src/TopSurface.cpp
src/TreeSupport.cpp
src/WallsComputation.cpp
src/wallOverlap.cpp
src/Weaver.cpp
src/Wireframe2gcode.cpp
src/WallToolPaths.cpp

src/BeadingStrategy/BeadingOrderOptimizer.cpp
src/BeadingStrategy/BeadingStrategy.cpp
src/BeadingStrategy/BeadingStrategyFactory.cpp
src/BeadingStrategy/CenterDeviationBeadingStrategy.cpp
src/BeadingStrategy/DistributedBeadingStrategy.cpp
src/BeadingStrategy/LimitedBeadingStrategy.cpp
src/BeadingStrategy/RedistributeBeadingStrategy.cpp
src/BeadingStrategy/WideningBeadingStrategy.cpp
src/BeadingStrategy/OuterWallInsetBeadingStrategy.cpp

src/communication/ArcusCommunication.cpp
src/communication/ArcusCommunicationPrivate.cpp
Expand Down Expand Up @@ -210,6 +225,9 @@ set(engine_SRCS # Except main.cpp.
src/utils/AABB.cpp
src/utils/AABB3D.cpp
src/utils/Date.cpp
src/utils/ExtrusionJunction.cpp
src/utils/ExtrusionLine.cpp
src/utils/ExtrusionSegment.cpp
src/utils/FMatrix4x3.cpp
src/utils/gettime.cpp
src/utils/getpath.cpp
Expand All @@ -220,39 +238,49 @@ set(engine_SRCS # Except main.cpp.
src/utils/Point3.cpp
src/utils/PolygonConnector.cpp
src/utils/PolygonsPointIndex.cpp
src/utils/PolygonProximityLinker.cpp
src/utils/PolygonsSegmentIndex.cpp
src/utils/polygonUtils.cpp
src/utils/polygon.cpp
src/utils/ProximityPointLink.cpp
src/utils/SVG.cpp
src/utils/socket.cpp
src/utils/SquareGrid.cpp
src/utils/ToolpathVisualizer.cpp
src/utils/VoronoiUtils.cpp
)

# List of tests. For each test there must be a file tests/${NAME}.cpp.
set(engine_TEST
ExtruderPlanTest
GCodeExportTest
InfillTest
LayerPlanTest
MergeInfillLinesTest
PathOrderOptimizerTest
PathOrderMonotonicTest
TimeEstimateCalculatorTest
)
set(engine_TEST_INTEGRATION
SlicePhaseTest
)
set(engine_TEST_SETTINGS
SettingsTest
WallsComputationTest
)
if (ENABLE_ARCUS)
set(engine_TEST_ARCUS
ArcusCommunicationTest
ArcusCommunicationPrivateTest
)
endif ()
set(engine_TEST_BEADING_STRATEGY
CenterDeviationBeadingStrategyTest
)
set(engine_TEST_INFILL
)
set(engine_TEST_INTEGRATION
SlicePhaseTest
)
set(engine_TEST_SETTINGS
SettingsTest
)
set(engine_TEST_UTILS
AABBTest
AABB3DTest
ExtrusionLineTest
IntPointTest
LinearAlg2DTest
MinimumSpanningTreeTest
Expand Down Expand Up @@ -346,6 +374,20 @@ if (BUILD_TESTS)
add_test(NAME ${test} COMMAND "${test}" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/tests/")
add_dependencies(build_all_tests ${test}) #Make sure that this gets built as part of the build_all_tests target.
endforeach()
if (ENABLE_ARCUS)
foreach(test ${engine_TEST_ARCUS})
add_executable(${test} tests/main.cpp ${engine_TEST_ARCUS_HELPERS} tests/arcus/${test}.cpp)
target_link_libraries(${test} _CuraEngine ${GTEST_BOTH_LIBRARIES} ${GMOCK_BOTH_LIBRARIES})
add_test(NAME ${test} COMMAND "${test}" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/tests/")
add_dependencies(build_all_tests ${test}) #Make sure that this gets built as part of the build_all_tests target.
endforeach()
endif()
foreach(test ${engine_TEST_BEADING_STRATEGY})
add_executable(${test} tests/main.cpp tests/beading_strategy/${test}.cpp)
target_link_libraries(${test} _CuraEngine ${GTEST_BOTH_LIBRARIES} ${GMOCK_BOTH_LIBRARIES})
add_test(NAME ${test} COMMAND "${test}" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/tests/")
add_dependencies(build_all_tests ${test}) #Make sure that this gets built as part of the build_all_tests target.
endforeach()
foreach (test ${engine_TEST_INFILL})
add_executable(${test} tests/main.cpp tests/infill/${test}.cpp)
target_link_libraries(${test} _CuraEngine ${GTEST_BOTH_LIBRARIES} ${GMOCK_BOTH_LIBRARIES})
Expand All @@ -364,14 +406,6 @@ if (BUILD_TESTS)
add_test(NAME ${test} COMMAND "${test}" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/tests/")
add_dependencies(build_all_tests ${test}) #Make sure that this gets built as part of the build_all_tests target.
endforeach()
if (ENABLE_ARCUS)
foreach (test ${engine_TEST_ARCUS})
add_executable(${test} tests/main.cpp ${engine_TEST_ARCUS_HELPERS} tests/arcus/${test}.cpp)
target_link_libraries(${test} _CuraEngine ${GTEST_BOTH_LIBRARIES} ${GMOCK_BOTH_LIBRARIES})
add_test(NAME ${test} COMMAND "${test}" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/tests/")
add_dependencies(build_all_tests ${test}) #Make sure that this gets built as part of the build_all_tests target.
endforeach()
endif ()
foreach (test ${engine_TEST_UTILS})
add_executable(${test} tests/main.cpp tests/utils/${test}.cpp)
target_link_libraries(${test} _CuraEngine ${GTEST_BOTH_LIBRARIES} ${GMOCK_BOTH_LIBRARIES})
Expand Down
28 changes: 0 additions & 28 deletions cmake/cpack_config_deb_mingw64.cmake

This file was deleted.

10 changes: 0 additions & 10 deletions cmake/cpack_config_zip_mingw64.cmake

This file was deleted.

64 changes: 0 additions & 64 deletions docker/build-mingw64.sh

This file was deleted.

21 changes: 0 additions & 21 deletions docker/publish-packages.sh

This file was deleted.

Loading

0 comments on commit df96b2f

Please sign in to comment.