Feature/re enable tests (#10503)

* re-enable tests

* Add comprehensive testing guide for OrcaSlicer in CLAUDE.md

* fix build errors on Win

* fix appimage errors
This commit is contained in:
SoftFever
2025-08-24 20:58:18 +08:00
committed by GitHub
parent 586921fa4d
commit b16a6052cb
26 changed files with 1149 additions and 98 deletions

View File

@@ -1161,7 +1161,7 @@ TEST_CASE("Test for bed center distance optimization", "[Nesting], [NestKernels]
NfpPlacer::Config pconfig;
pconfig.object_function = [](const Item &item) -> double {
pconfig.object_function = [](const Item &item, const std::vector<std::reference_wrapper<Item>>&) -> double {
return pl::magnsq<PointImpl, double>(item.boundingBox().center());
};
@@ -1205,7 +1205,7 @@ TEST_CASE("Test for biggest bounding box area", "[Nesting], [NestKernels]")
pile_box = sl::boundingBox(pile);
};
pconfig.object_function = [&pile_box](const Item &item) -> double {
pconfig.object_function = [&pile_box](const Item &item, const std::vector<std::reference_wrapper<Item>>&) -> double {
Box b = sl::boundingBox(item.boundingBox(), pile_box);
double area = b.area<double>() / (double(W) * W);
return -area;