Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Obtain Vertex_handle from compact container of vertices

Subject: CGAL users discussion list

List archive

[cgal-discuss] Obtain Vertex_handle from compact container of vertices


Chronological Thread 
  • From: Adam Getchell <>
  • To:
  • Subject: [cgal-discuss] Obtain Vertex_handle from compact container of vertices
  • Date: Sat, 12 Oct 2019 13:38:56 -0700
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:AlFBkB004IwbvS/IsmDT+DRfVm0co7zxezQtwd8ZseIRK/ad9pjvdHbS+e9qxAeQG9mCsLQa1KGP7vmocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmTSwbalzIRi0ogndq8kbjZZ/Iast1xXFpWdFdf5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALMTRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTljjoMOTwk/2HNksF+jL5Urx28qRJ8zYDafoabOeFkca/BeNMXX2pBUtpTWiFHH4iyb5EPD+0EPetAs4TyukEBrR6jDgetGuzv1iNHhn/o0q0+1+QqDAbL0xY9EN0UtXTYttr1O7kOUe+pzKnH0zHDb/dN1Dfy7YjHaBEhofWWUb1sdsrRzFAiGgXYhVuerozlOima1uULs2WD4OpgVP6vi246qw5quDSg2sAsiozRio0I1F/E6z91wJoyJdC+VUV1YsakHYNOuy2GM4Z6WMAvTmFytCony7ALu4S3cDUIxZkk3xLTdf2Kf5SU7h/mSeqcIyt0iG5gdb+8iRa//1Ssx+jyW8S63lZGsi9In9nQuX8TzBPe78uKR/Vg8Uqh3DuC2Rzc5+5aLU0xm6rUNoItzaI2m5EOq0rMBDX2l1/zjKKOdkUr5Oyo6+P/b7XjvJCcNot0hhj5MqQvh8CzGOo4PhUMUmWY4+i827rj/Ur2QLVOkPI6iLXWsJffJcgDp665BRFa0po75hqhEzur1M4UkHoHIV5fZR6KjorkN0vTLP36Dvqzm1Gsny1qx/DCML3hGJLNLn3bnbj7YLly8UtcxBA8zd9B+5JbFrEBL+z3Wk/1r9HYARo5PBa1w+bjEtlyyoQeWWeXDq+DLKzSqUOI5v4oI+SUeIAVtyzyK/w86/HzjH85gkMSfbSy3ZsMc324BfRnI0CBYXX2mNsBEGEKvhA/TOPwklGCXyRTND6OWPc36Tg/TY6nFozeXZuFgbqb3S79EIcFSHpBDwWlHX7tP6qJR/wMZSaWaptonjUBE7esV4Qh2BWqnAD/wrtjaOHT/3tL5trYyNFp6riLxlkJ/jtuApHFijDffyRPhmoNAgQO8uV6qE15xE2E1PEh0fNdHN1XofhOV1VjbMOO/6lBE9n3Hzn5UJKJRVKhGIv0BDgwSpc2woZLbR8iS5OtiRfM2yfsCLgQxeTSWM4Et5nE1n20HP5Tjm7c3fB43VYjS8pLc2ahg/wn+g==

Hello all,

In Triangulation_data_structure_3.h, I am using the vertices() method to obtain a reference to the compact container of vertices in the triangulation.

I’m attempted to obtain from that Vertex_handles on the items in the container, so that I can iterate through them and test for the infinite vertex using the is_infinite(Vertex_handle v) method.

Reading the documentation on CGAL::Compact container seems to imply that one can obtain an iterator of T from the container, but if I obtain the first element of the CGAL::Compact_container<CGAL::Triangulation_vertex_base_with_info_3, …> I cannot successfully cast it to a Vertex_handle via static_cast.

The debugger shows that I have a pointer to the element, but I cannot dereference it successfully.

Here’s a short self-contained example of what I’m attempting:

https://github.com/acgetchell/test-cgal/tree/master

Thanks for any advice.
-- 
Adam Getchell
https://dev.to/acgetchell






Archive powered by MHonArc 2.6.18.

Top of Page