Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Is there a circulator for the hull of a 2d alpha shape?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Is there a circulator for the hull of a 2d alpha shape?


Chronological Thread 
  • From: Mael <>
  • To:
  • Subject: Re: [cgal-discuss] Is there a circulator for the hull of a 2d alpha shape?
  • Date: Tue, 14 Aug 2018 09:32:00 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:OVXyPhf4eOX7qW0PiNGUOhzUlGMj4u6mDksu8pMizoh2WeGdxcS/ZB7h7PlgxGXEQZ/co6odzbaO7ea4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahYL5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM37X/ZisJwgqxYrhyuqRNwzIzIb4yOLvVyYrnQcMkGSWdPXMtcUTFKDIOmb4sICuoMJeFWoJPjqFsKsBCzAgysC/nxxT9MnHP2x6o60/kuEA7Y2AwsBdYOv27Po9ruKqgfSu+1w7fPzTXGcfxWxS396YjGch87vf6MQbVwcdDRyEU1CwzFiVCQpJXjMjiI2OoNtG2b4PBhVeKpk2MnrRt+rSO0yccolIbFnJ4aylfB9Slh3Ik1Kse3SEphbd6jCptQuCeXPJZ1TMM6W2xluyQ3xqcCtJO4ZiQG1ZUqywDFZ/CZbYSF5grvWeKNLTtih39oeaiziwiu/UWv0OHwSMm53VBXpSRfiNbMrGoC1xnL58iHVPR9+kCh1C6S2wzN8O1EJEc0mbfBJ54k2LEwl54TvV3EHi/rhEX6lqiWdlsk+uSy7eTofKnmqoedN49ylA7+Lrwjl8+9DOgiNgUDXHKX9fm92bH950H1XqtGg/kunqncqp/aJMAbpqCjAw9S14Yu8xO/AC2439Qch3UHNlVFeA+Ijof3P1HCOvT4Au2kjFu3jjhm3P/GMaPmApXIMHfDjK3hfLZz60FG1AUz0ddf54hUC70bPP3zXUrxuMTCDhAlKwy03/rnCNJl24wCVmKAGKuZPLrPvl+J/eIgP/SMZJQOuDvmMPgk5/vujWcjllMHfKmp24EXaHGiEfh8LUWZeymkvtBUGmgDuk8yTffhlUaZeT9VfXe7GawmtR8hD4fzKI7OQsj5hbWM2GGhGYBGa2QADlmGG3rAeIiDXvoQcjOcK8R9lSYVE7OmTtlyhlmVqAbmxu8/faLv8SoCuMe7jYkn16jojRg3sAdMIYGY2mCJQXtzmzlRFTA726VyvVZsxF6Iza9ikrpTEtkBv6oVADd/DobVyqlBM/63QhjIJI7bR1uhR9i6GyA/R9ktxMUfJU16Hof6102R72+RG7YQ0oezKtk0/6bbhSWjfpw7znGfkqwojl1jRdZTc2q4huh5+hSBX4M=

Hello,

As far as I know, there is no direct function.

Maybe simpler than sorting the edges, you can loop over vertices and walk the border (for example by treating the triangulation as a graph and using CGAL::halfedges_around_target to loop on the incident faces while they are classified as exterior). Another maybe even simpler way would be to use the adaptor Face_filtered_graph on your triangulation to discard all the faces of the triangulation that are marked as exterior in the alpha shape. You can then just walk the border of your graph using BGL functions and CGAL's BGL helper functions.

Best,
Mael

On 12/08/18 14:44, brainslush wrote:
Is there a circulator which walks along the hull of a calculated 2D alpha
shape?
I know that I can extract the edges via iterating through
alpha_shape_edges_begin() to alpha_shape_edges_end(). But it returns the
edges in an unordered way. I probably could sort them but since I'm trying
to avoid any unnecessary overhead I was wondering if something like this
exists.

Thanks



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





Archive powered by MHonArc 2.6.18.

Top of Page