Boost C++ Libraries: Ticket #10636: Incorrect output from get_trapezoids(..., HORIZONTAL) https://svn.boost.org/trac10/ticket/10636 <p> The attached program uses boost::polygon to slice up a figure (with a "hole" cut out of it) into horizontal trapezoids. The output I get is: Output: polygon (4 3) (4 0) (0 0) (0 3) (4 3) ...which is clearly wrong. I am pretty sure my code is correct, because if I replace bg::HORIZONTAL with bg::VERTICAL, I get the correct output of a bunch of vertical trapezoids. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10636 Trac 1.4.3 "Patrick J. LoPresti" <lopresti@…> Tue, 07 Oct 2014 22:52:52 GMT attachment set https://svn.boost.org/trac10/ticket/10636 https://svn.boost.org/trac10/ticket/10636 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">polytest.cc</span> </li> </ul> <p> Simple test case demonstrating get_trapezoids failure </p> Ticket "Patrick J. LoPresti" <lopresti@…> Tue, 07 Oct 2014 22:53:32 GMT version changed https://svn.boost.org/trac10/ticket/10636#comment:1 https://svn.boost.org/trac10/ticket/10636#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.54.0</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> Ticket stefac30@… Mon, 03 Nov 2014 14:22:46 GMT <link>https://svn.boost.org/trac10/ticket/10636#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10636#comment:2</guid> <description> <p> Hi, </p> <p> I have got the same problem on my side. Is there any plan for a fix in a future release? Also, is there any workaround? Since the vertical behavior is not broken I was thinking to transform the input point array and call the get_trapezoids API in vertical on it... Not very smart but it should do the job :-). </p> <p> Thanks, Stephane </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrii Sydorchuk</dc:creator> <pubDate>Wed, 12 Nov 2014 22:06:29 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/10636#comment:3 https://svn.boost.org/trac10/ticket/10636#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Lucanus Simonson</span> to <span class="trac-author">Andrii Sydorchuk</span> </li> </ul> Ticket Andrii Sydorchuk Wed, 01 Apr 2015 01:31:52 GMT status, version changed; resolution set https://svn.boost.org/trac10/ticket/10636#comment:4 https://svn.boost.org/trac10/ticket/10636#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.56.0</span> → <span class="trac-field-new">Boost 1.58.0</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Hi Patrick, </p> <p> Thank you for your report. The issue was fixed as part of ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/10976" title="#10976: Bugs: Problem with polygon library versions 1.56 and 1.57 (closed: fixed)">#10976</a> . I added your example as another unittest. The fix was merged into master and develop branches and will be part of the Boost 1.58 release. </p> Ticket