boostorg / polygon

Boost.org polygon module
http://boost.org/libs/polygon
57 stars 70 forks source link

popCoordinate in funtion pushPoint is confusing #83

Closed xshenf closed 1 year ago

xshenf commented 1 year ago

https://github.com/boostorg/polygon/blob/8ba35b57c1436c4b36f7544aadd78c2b24acc7db/include/boost/polygon/detail/polygon_formation.hpp#L964-L975

When collinear, this function returns the result after popCoordinate, which may lose a coordinate, and push nothing.