mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Fixing some compiler warnings on Linux
This commit is contained in:
parent
cbee82dc95
commit
5449e6c549
4 changed files with 10 additions and 8 deletions
|
@ -176,13 +176,13 @@ TEST_CASE("Voronoi missing edges - Alessandro gapfill 12707", "[Voronoi]")
|
|||
|
||||
std::mt19937 gen;
|
||||
std::uniform_int_distribution<coord_t> dist(-100, 100);
|
||||
for (Point &p : poly.points) {
|
||||
#if 0
|
||||
for (Point &p : poly.points) {
|
||||
// Wiggle the points a bit to find out whether this fixes the voronoi diagram for this particular polygon.
|
||||
p.x() = (p.x() += dist(gen));
|
||||
p.y() = (p.y() += dist(gen));
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
REQUIRE(intersecting_edges({ poly }).empty());
|
||||
|
||||
|
@ -267,7 +267,7 @@ TEST_CASE("Voronoi weirdness", "[Voronoi]")
|
|||
};
|
||||
|
||||
// coord_t shift = 35058881;
|
||||
coord_t shift_ok = 17000000;
|
||||
// coord_t shift_ok = 17000000;
|
||||
coord_t shift = 35058881;
|
||||
Polygon poly {
|
||||
// <-4, 0>: bug
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue