mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user