mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 07:01:50 +08:00
Follow-up to c36af0e739ed4d9ad1ca4e452867bb5f59914174
Fixed a bug introduced in Polygon.cpp Polygon::contains(_
This commit is contained in:
parent
37da0956cb
commit
c1807d6acd
@ -96,7 +96,7 @@ bool Polygon::contains(const Point &p) const
|
||||
bool result = false;
|
||||
Points::const_iterator i = this->points.begin();
|
||||
Points::const_iterator j = this->points.end() - 1;
|
||||
for (; i != this->points.end(); j = ++ i)
|
||||
for (; i != this->points.end(); j = i ++)
|
||||
if (i->y() > p.y() != j->y() > p.y())
|
||||
#if 1
|
||||
if (Vec2d v = (*j - *i).cast<double>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user