Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Triangulating non-convex polygon

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Triangulating non-convex polygon


Chronological Thread 
  • From: Mael <>
  • To:
  • Subject: Re: [cgal-discuss] Triangulating non-convex polygon
  • Date: Mon, 13 Aug 2018 08:36:48 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:lfUlcxcck8xWapH6m8fy9sLPlGMj4u6mDksu8pMizoh2WeGdxcS+bB7h7PlgxGXEQZ/co6odzbaO7ea4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahYL5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM37X/ZisJwgqxYrhyuqRNwzIzIb4yOLvVyYrnQcMkGSWdPXMtcUTFKDIOmb4sICuoMJeFWoJPjqFsKsBCzAgysC/nxxT9MnHP2x6o60/kuEA7Y2AwsBdYOv27Po9ruKqgfSu+1w7fPzTXGcfxWxS396YjGch87vf6MQbVwcdDRyEU1CwzFiVCQpJXjMjiI2OoNtG2b4PBhVeKpk2MnrRt+rSO0yccolIbFnJ4aylfB9Slh3Ik1Kse3SEphbd6jCptQuCeXPJZ1TMM6W2xltyc3xqcbtZKnfCUG0poqyhzFZ/GFbYSE+hbuWPqLLTp7hX9pYqyziwq9/ES61OHxVs+520tQoCVfiNnDrHUN2gTT6seZTvt9+V+s1DmV2wDW7eFIPEI5mKjBJ54k2LEwl54TvV3EHi/rhEX6lqiWdlsk+uSy7eTofKnmqoedN49ylA7+Lrwjl8O+DOgiLwQCQ2iW9f6y2bDh50H0QqtGguUzkqbDsZDaIcobprS+Aw9Qyosj7gywACmi0NgCh3kHK09FeR2ZgIjtIV3OJOr3AuykjFuyizpryO7JPrrkAprTMnjDirfgfbhn5EFA1Aozyspf5pJOBr4dJ/LzX1f9tMbEAR8hLwy03+HnBc1h2YMRQ22PBraVP77TsV+T+u0vPvKMZJQOtTbmK/kl4ubugmUjlV8ce6mpx5oXZ2qiEvRoOUXKKUbr19wOGGNPsgslR/Hxk3WDVyRSbjC8RfES/DY+XaevAIOLEoWkjbjHxiCmDpBSIGRPAFqBOXjlcICJR+0dZiuZPsh7g3oPUr33GNxp7g2nqAKvk+kvFeHT4CBN7cuyhugw3PXakFQJzRIxCs2c12+XSGQuxzEHSjgz0bxlsEJ0wUuEy7k+iPtdR4QKu6F5FzwiPJuZ9NRUTsjoU1iYLNiET1OrXs+3Dzg6UtUr0pkFZEMvQ4z/3CCG5DKjBvour5LOBJEw9fiCjSS3IsEklCmA0aAgixwhX9cJMnOmwKhy61qLCg==

Hello,

According to https://doc.cgal.org/latest/Triangulation_2/index.html#title0, "the triangulations of CGAL are complete triangulations which means that their domain is the convex hull of their vertices". Your polygon is non-convex, and this is why these four faces are there.

If you want to get the faces of the triangulation of your non-convex polygon, you can just start from a face that you know is inside (which can be found by using 'locate()' on a point you know is inside the polygon), and then using a spreading algorithm to "color" faces as long as they are not separated by a constrained edge.

Best,
Mael

On 13/08/18 06:21, Tekel wrote:
Hello, I've been struggling with this problem for a while now and the
information on the documentation and on the mailing list is not really
helpful... 

I want to tryangulate a Fisk Polygon (the one that looks like a crown, used
to proof Art Gallery theorem). Or any other non-convex polygon. Like this
one:
<http://cgal-discuss.949826.n4.nabble.com/file/t376023/polygon.png> 

However when I use the Triangulation provieded by   CGAL what I get is a
triangulation that includes incorrect faces as seen:

<http://cgal-discuss.949826.n4.nabble.com/file/t376023/tpolygon.png> 

Whilst the real triangulation is this one:
<http://cgal-discuss.949826.n4.nabble.com/file/t376023/geogebra-export.png> 

What is the easiest way to avoid having those extra 4 faces? (the ones in
the middle of each peak)

Thanks in advance



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/





Archive powered by MHonArc 2.6.18.

Top of Page