Boost C++ Libraries: Ticket #10049: Error in polygon set shrink https://svn.boost.org/trac10/ticket/10049 <p> I have a case where shrinking a four vertex polygon (polygon set) gives a wrong result. The input vertices are </p> <pre class="wiki">(4000, 0) (2500, 500) (0, 3000) (0, 0) </pre><p> This is shrunken by an amount of 1000. The result should be a triangle but it is not. See attached image where the input polygon is red and the result is green. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10049 Trac 1.4.3 Jakob Schou Jensen <jakob.schou.jensen@…> Tue, 13 May 2014 12:27:18 GMT attachment set https://svn.boost.org/trac10/ticket/10049 https://svn.boost.org/trac10/ticket/10049 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">shrink.png</span> </li> </ul> <p> red=input, green=result (shrink by 1000) </p> Ticket Jakob Schou Jensen <jakob.schou.jensen@…> Tue, 13 May 2014 12:28:26 GMT attachment set https://svn.boost.org/trac10/ticket/10049 https://svn.boost.org/trac10/ticket/10049 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">shrink.cpp</span> </li> </ul> Ticket Jakob Schou Jensen <jakob.schou.jensen@…> Tue, 13 May 2014 12:29:49 GMT <link>https://svn.boost.org/trac10/ticket/10049#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10049#comment:1</guid> <description> <p> I compile the attached code with: </p> <pre class="wiki">clang++ -I &lt;path to boost&gt;/boost_1_55_0 -std=c++11 shrink.cpp </pre><p> on mac osx maverics. </p> </description> <category>Ticket</category> </item> <item> <author>Jakob Schou Jensen <jakob.schou.jensen@…></author> <pubDate>Tue, 13 May 2014 12:48:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10049#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10049#comment:2</guid> <description> <p> Correction: The attach example should not give a triangle as the shrink result - rather an empty result. However, reducing the shrink to 750 instead of should give a triangle but it produces a result similar to the attached image. Both cases are wrong (unless I am violating some input constraint that I am unaware of). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrii Sydorchuk</dc:creator> <pubDate>Wed, 21 May 2014 21:38:56 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/10049#comment:3 https://svn.boost.org/trac10/ticket/10049#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, 21 May 2014 21:40:48 GMT <link>https://svn.boost.org/trac10/ticket/10049#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10049#comment:4</guid> <description> <p> Hi Jakob, </p> <p> Thank you for your report and the attached image. I am going to investigate the issue. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrii Sydorchuk</dc:creator> <pubDate>Thu, 29 May 2014 22:02:32 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10049#comment:5 https://svn.boost.org/trac10/ticket/10049#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Jakob, </p> <p> The resizing (bloat, shrink) operation implementation is seriously broken. This is a known issue and am going to mark this as duplicate of "Ticket <a class="assigned ticket" href="https://svn.boost.org/trac10/ticket/6063" title="#6063: Bugs: resize does not offset rectangles (etc.) correctly or crashes (assigned)">#6063</a>". There is no explicit timeline for the issue to be fixed at the moment. </p> Ticket Jakob Schou Jensen <jakob.schou.jensen@…> Fri, 30 May 2014 17:39:14 GMT <link>https://svn.boost.org/trac10/ticket/10049#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10049#comment:6</guid> <description> <p> If these functions are known to be "seriously broken" would it not be better to remove them? Or mention the issue in the documentation? </p> </description> <category>Ticket</category> </item> <item> <author>Jakob Schou Jensen <jakob.schou.jensen@…></author> <pubDate>Fri, 30 May 2014 17:47:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10049#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10049#comment:7</guid> <description> <p> (by the way boost::polygon is extremely cool and amazing!) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrii Sydorchuk</dc:creator> <pubDate>Sat, 31 May 2014 09:29:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10049#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10049#comment:8</guid> <description> <p> Thanks! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrii Sydorchuk</dc:creator> <pubDate>Sat, 31 May 2014 09:30:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10049#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10049#comment:9</guid> <description> <p> I will update documentation accordingly. </p> </description> <category>Ticket</category> </item> </channel> </rss>