ENH: add tool order function

1.Use min cost max flow to solve the tool order

jira:NEW

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I909845039b67c7fe3ddd42580ad3f1d71d52262d
(cherry picked from commit 0716b8518ef62e0eac7c45de8bafb1458d8f9a8e)
This commit is contained in:
xun.zhang
2025-08-24 23:18:10 +08:00
committed by Noisyfox
parent ec98375192
commit 5d4cb375b0
4 changed files with 159 additions and 18 deletions
+2
View File
@@ -52,6 +52,7 @@ namespace Slic3r
std::optional<std::function<bool(int, std::vector<int>&)>> get_custom_seq;
};
class KMediods
{
enum INIT_TYPE
@@ -83,5 +84,6 @@ namespace Slic3r
private:
std::vector<int>m_filament_labels;
};
}
#endif // !FILAMENT_GROUP_HPP