|
Boost : |
Subject: [boost] [Geometry] Wrong results for dissolve Polygon
From: Andreas Wimmer (andreas.wimmer_at_[hidden])
Date: 2015-06-12 02:49:25
Dear Boost Geometry Contributors,
I am testing the boost::geometry::dissolve function upon some invalid
polygons that are produced by a certain in-house segmentation alg.
The fact that the algorithm is producing possibly invalid polygons cannot be
changed easily so I thought I will fix them afterwards using dissolve from
âgeometry/extensions/algorithms/dissolve.hppâ for the latest boost 1.58 version.
Unfortunately I stumbled over the following polygons for which dissolve
produces wrong results.
The following code illustrates the result
using namespace boost::geometry;
using namespace boost::geometry::model;
using namespace boost::geometry::model::d2;
int
main(int argc, _TCHAR* argv[])
{
polygon< point_xy<float> > Poly;
read_wkt("1e=8 ÄÀÄÀ°ÄÀÈÀ°ÈÀÈÀ°ÄÔÄÈ°ÄÔÄà°ÈÀÄÀ°ÄÀÄÀ¤¤°(A½±ä¤ì((µÕ±Ñ¥}Á½±å½¸ðÁ½±å½¸ðÁ½¥¹Ñ}áäð±½
Ðøøø¥Íͽ±Ùì(½½ÍÐèé½µÑÉäèé¥Íͽ±Ù¡A½±ä°¥Íͽ±Ù¤ì)ô()]¡¥ ÉÍÕ±ÑÌ¥¸Á½±å½¸¥¹±Õ¥¹Ñ¡Íµ
±°¥¹ÑÉÍÑ¥½¸Á
ÉÐÝ¡¥ )Í¡½Õ±á±Õɽ´Ñ¡Á½±å½¸()¹Ù¸µ½ÉÁɽ±µ
ѥѡ½±±½Ý¥¹á
µÁ±¡Í
µÁ½±å½¸Ý¥Ñ
¹)
¥Ñ¥½¹
°Í±µÑ½Õ¡¥¹½ÕÑÈÉ¥¹¤ÉÍÕ±ÑÌ¥¸µ¥ÍÍ¥¹Ñ¡¹Ñ¥Éµ
¥¸Á
ÉÐ)½Ñ¡Á½±å½¸()¥¹Ð)µ
¥¸¡¥¹Ð
É°}Q
!H¨
ÉÙmt¤)ì(Á½±å½¸ðÁ½¥¹Ñ}áäñ±½
ÐøøA½±äì(É
}ÝÐ A=1e=8 ÄÀÄÀ°ÄÀÈÀ°ÈÀÈÀ°ÈÀÈÔ°ÈÈÈÔ°ÈÀÈÀ°ÄÔÄÈ°ÄÔ(Äà°ÈÀÄÀ°ÄÀÄÀ¤¤°(A½±ä¤ì((µÕ±Ñ¥}Á½±å½¸ðÁ½±å½¸ðÁ½¥¹Ñ}áäð±½
Ðøøø¥Íͽ±Ùì(½½ÍÐèé½µÑÉäèé¥Íͽ±Ù¡A½±ä°¥öÇfVB°§Ð¢
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk