Boost C++ Libraries: Ticket #11899: boost::geometry::equals doesn't handle open polygons https://svn.boost.org/trac10/ticket/11899 <p> That doesn't works: </p> <pre class="wiki">typedef boost::geometry::model::d2::point_xy&lt;int&gt; P; boost::geometry::model::polygon&lt;P, false, false&gt; polygon1, polygon2; boost::geometry::append(polygon1, boost::make_tuple(-18,1)); boost::geometry::append(polygon1, boost::make_tuple(-23,1)); boost::geometry::append(polygon1, boost::make_tuple(-23,-3)); boost::geometry::append(polygon1, boost::make_tuple(-18,-3)); boost::geometry::append(polygon2, boost::make_tuple(-23,1)); boost::geometry::append(polygon2, boost::make_tuple(-23,-3)); boost::geometry::append(polygon2, boost::make_tuple(-18,-3)); boost::geometry::append(polygon2, boost::make_tuple(-18,1)); assert(boost::geometry::equals(polygon1, polygon2) == true); </pre><p> But this works: </p> <pre class="wiki">typedef boost::geometry::model::d2::point_xy&lt;int&gt; P; boost::geometry::model::polygon&lt;P, false, true&gt; polygon1, polygon2; boost::geometry::append(polygon1, boost::make_tuple(-18,1)); boost::geometry::append(polygon1, boost::make_tuple(-23,1)); boost::geometry::append(polygon1, boost::make_tuple(-23,-3)); boost::geometry::append(polygon1, boost::make_tuple(-18,-3)); boost::geometry::append(polygon1, boost::make_tuple(-18,1)); boost::geometry::append(polygon2, boost::make_tuple(-23,1)); boost::geometry::append(polygon2, boost::make_tuple(-23,-3)); boost::geometry::append(polygon2, boost::make_tuple(-18,-3)); boost::geometry::append(polygon2, boost::make_tuple(-18,1)); boost::geometry::append(polygon2, boost::make_tuple(-23,1)); assert(boost::geometry::equals(polygon1, polygon2) == true); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11899 Trac 1.4.3 awulkiew Sun, 09 Apr 2017 14:14:11 GMT status, component, milestone changed; resolution set https://svn.boost.org/trac10/ticket/11899#comment:1 https://svn.boost.org/trac10/ticket/11899#comment:1 <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">fixed</span> </li> <li><strong>component</strong> <span class="trac-field-old">polygon</span> → <span class="trac-field-new">geometry</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.64.0</span> </li> </ul> <p> Thanks! </p> <p> Fix (the second one is for another but related issue): </p> <ul><li><a class="ext-link" href="https://github.com/boostorg/geometry/commit/657a5c80902edc9640a06571c2762a5dee591067"><span class="icon">​</span>https://github.com/boostorg/geometry/commit/657a5c80902edc9640a06571c2762a5dee591067</a> </li><li><a class="ext-link" href="https://github.com/boostorg/geometry/commit/e3ac044400748e23d7a5a708b47bb8fef9b14758"><span class="icon">​</span>https://github.com/boostorg/geometry/commit/e3ac044400748e23d7a5a708b47bb8fef9b14758</a> </li></ul> Ticket awulkiew Sun, 09 Apr 2017 14:16:08 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/11899#comment:2 https://svn.boost.org/trac10/ticket/11899#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> Ticket awulkiew Sun, 09 Apr 2017 14:16:20 GMT owner, status changed https://svn.boost.org/trac10/ticket/11899#comment:3 https://svn.boost.org/trac10/ticket/11899#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Lucanus Simonson</span> to <span class="trac-author">awulkiew</span> </li> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket awulkiew Sun, 09 Apr 2017 14:16:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11899#comment:4 https://svn.boost.org/trac10/ticket/11899#comment:4 <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">fixed</span> </li> </ul> Ticket