Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Persistent cell identifiers in Triangulation_3

Subject: CGAL users discussion list

List archive

[cgal-discuss] Persistent cell identifiers in Triangulation_3


Chronological Thread 
  • From: "Brown, James 2" <>
  • To: "''" <>
  • Subject: [cgal-discuss] Persistent cell identifiers in Triangulation_3
  • Date: Wed, 10 Feb 2016 22:10:23 +0000
  • Accept-language: en-US
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
  • Ironport-phdr: 9a23:5xnplR+S5xVW1f9uRHKM819IXTAuvvDOBiVQ1KB91O4cTK2v8tzYMVDF4r011RmSDdqdsKgP0reP+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStGU1J78jr3rs7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cY6Lod8JsKHq71dqB9Qb1DByk9KEg04tfqvF/NV0TFri8XXWwS1xZJGAPY9wrSX5HrsyK8uPAriweAOsijB5ouXiukq+9JQRrlk29dfXZt8mjSh9c2hrhcvxSJoxl0xMjfZ4TDZ6k2Rb/UYd5PHTkJZc1WTSEUWo4=

When using the triangulation I need to map from a Cell to an external data structure, so I am trying to find the correct way to persistently reference a cell.

 

It seems the way to reference cells should be with a Cell_handle, but it looks like this is actually a Cell_iterator. I would like to perform an incremental triangulation but the documentation notes that the iterators become invalid for any change to the triangulation. This makes it sound like I cannot use a Cell_handle to persistently reference a cell during an incremental triangulation.

 

After some experimentation it seems (assuming the cell has not been removed by a point insertion or vertex deletion) that I can still correctly reference a cell through its Cell_handle after a change to the triangulation. Is this just a fluke or is it a safe operation, and what is the best way if any to accomplish what I need?

 

Thanks,

James




Archive powered by MHonArc 2.6.18.

Top of Page