Subject: [Boost-bugs] [Boost C++ Libraries] #5358: polygon resize() generates bad/broken vertices
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-23 03:33:22
#5358: polygon resize() generates bad/broken vertices
--------------------------------------------+-------------------------------
Reporter: Andy Ross <andy@â¦> | Owner: ljsimons
Type: Bugs | Status: new
Milestone: To Be Determined | Component: polygon
Version: Boost Development Trunk | Severity: Showstopper
Keywords: |
--------------------------------------------+-------------------------------
boost::polygon::resize() (and its variants:
shrink()/bloat()/operator+(), etc...) routinely produces "bad"
vertices in the output stream. Most of the shrunken polygon is
correct, but a handful of vertices seem to be replaced with visually
random locations.
The attached code (which has non-trivial input data, but not so
complicated that it can't be inspected by hand) shows the problem
pretty clearly. The "before" polygon (image attached) looks good, the
"after" shrunken version is mostly correct with some oddball
excursions.
Setting corner_fill_arc to true suppresses this behavior, and the
output polygon looks more correct (though obviously the output is
different). That, however, has some severe performance problems (to
be detailed in a separate bug) and isn't an acceptable substitute.
This is a showstopper for me right now. Test vs. svn as of submission
date.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5358> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC