mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 05:31:50 +08:00
Fixed some compilation warnings in MutablePolygon.cpp
This commit is contained in:
parent
13c178b7f7
commit
acce99f29b
@ -148,6 +148,7 @@ static bool clip_narrow_corner(
|
|||||||
|
|
||||||
if (polygon.size() <= 3) {
|
if (polygon.size() <= 3) {
|
||||||
// A hole degenerated to an empty polygon, or a tiny triangle remained.
|
// A hole degenerated to an empty polygon, or a tiny triangle remained.
|
||||||
|
#ifndef NDEBUG
|
||||||
bool blocked = forward == Blocked || backward == Blocked;
|
bool blocked = forward == Blocked || backward == Blocked;
|
||||||
assert(polygon.size() < 3 ||
|
assert(polygon.size() < 3 ||
|
||||||
// Remaining triangle is CCW oriented. Both sides must be "blocked", but the other side may have not been
|
// Remaining triangle is CCW oriented. Both sides must be "blocked", but the other side may have not been
|
||||||
@ -155,7 +156,6 @@ static bool clip_narrow_corner(
|
|||||||
blocked ||
|
blocked ||
|
||||||
// Remaining triangle is concave, however both of its arms are long.
|
// Remaining triangle is concave, however both of its arms are long.
|
||||||
(forward == Far && backward == Far));
|
(forward == Far && backward == Far));
|
||||||
#ifndef _NDEBUG
|
|
||||||
if (polygon.size() == 3) {
|
if (polygon.size() == 3) {
|
||||||
// Verify that the remaining triangle is CCW or CW.
|
// Verify that the remaining triangle is CCW or CW.
|
||||||
p02 = it0.prev()->cast<int64_t>();
|
p02 = it0.prev()->cast<int64_t>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user