mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 17:08:42 +03:00
Update test_perimeters.cpp
This commit is contained in:
@@ -74,7 +74,7 @@ SCENARIO("Perimeter nesting", "[Perimeters]")
|
|||||||
upper_layer_polygons_cache,
|
upper_layer_polygons_cache,
|
||||||
lower_layer_polygons_cache,
|
lower_layer_polygons_cache,
|
||||||
// output:
|
// output:
|
||||||
loops, gap_fill, fill_expolygons,fill_expolygons_no_overlap);
|
loops, gap_fill, fill_expolygons,fill_expolygons_no_overlap,0);
|
||||||
|
|
||||||
THEN("expected number of collections") {
|
THEN("expected number of collections") {
|
||||||
REQUIRE(loops.entities.size() == data.expolygons.size());
|
REQUIRE(loops.entities.size() == data.expolygons.size());
|
||||||
@@ -105,7 +105,7 @@ SCENARIO("Perimeter nesting", "[Perimeters]")
|
|||||||
[](const ExtrusionEntity *ee){ return dynamic_cast<const ExtrusionLoop*>(ee)->polygon().is_counter_clockwise(); });
|
[](const ExtrusionEntity *ee){ return dynamic_cast<const ExtrusionLoop*>(ee)->polygon().is_counter_clockwise(); });
|
||||||
REQUIRE(ccw == data.ccw);
|
REQUIRE(ccw == data.ccw);
|
||||||
}
|
}
|
||||||
THEN("expected ccw/cw order") {
|
THEN("expected ccw/cw order") {1
|
||||||
std::vector<bool> ccw_order;
|
std::vector<bool> ccw_order;
|
||||||
for (auto *ee : loops.entities)
|
for (auto *ee : loops.entities)
|
||||||
ccw_order.emplace_back(dynamic_cast<const ExtrusionLoop*>(ee)->polygon().is_counter_clockwise());
|
ccw_order.emplace_back(dynamic_cast<const ExtrusionLoop*>(ee)->polygon().is_counter_clockwise());
|
||||||
|
|||||||
Reference in New Issue
Block a user