Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Triangulation_3: creating all triangulations reachable by a flip
Chronological Thread
- From: Adam Getchell <>
- To:
- Subject: Re: [cgal-discuss] Triangulation_3: creating all triangulations reachable by a flip
- Date: Mon, 10 Dec 2018 11:54:32 -0800
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:FRnsSBGGY6RwTD15Qycyvp1GYnF86YWxBRYc798ds5kLTJ7yosmwAkXT6L1XgUPTWs2DsrQY07qQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDmwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VjO/4ad2Ux/okDkIOCIl8G/ZjcxwibhUoBOnpxdix4LZb4WYOP94c6jAf90VWHBBU95RWSNdDYyycoUBD+QfM+larIfzoEADogGiCQmpHu7vyiNEi33w0KYn0+ohCwbG3Ak4Et8SrXvbttD1P7oTX++r0KnH0TXDYO1S2Tf59YPFdQouruyWUrJ1a8bRxlcgFx/ZgVWQt4PlOzeV2/8Cs2ie9eVgVOavh3Q7pAF2pzii38EhgZTHiIISz1DL7yR5wIAtKN2/UE50f9ikHIJLtyGGKoR6WMQiQ3tnuCoiy70Gv4S7fCkQx5g9yR7fceSLc4uW7RPjT+meOyx4i2x/dLK+gBa+6UegyuzgVsm0zVZFtTBJktjLtn0Lyhfd6dCHR+Nj8ku93TuDzQPe5+FeLUwqiKbWJIQtzqMzm5YOqUjPAy77lUHsgKOIeEgp+PKk5/n5brjpvJORNYt5hwfjOao0gMO/G/43Mg0WUmib5+u80Lrj8FX8QLpQj/02lrDVsIjeJcgGv6K5DRJZ34U+5xqlADem19MYnXYDLF1bYh6Ik4/pO1TWLPD5C/ewnUisnS91y/zaOrDtGJbAI3jZnLv/YLpw5FRQxBcwwNxC/55UD6sOIPP3Wk//rtzYCRo5PhSuzOn6Etp905kSWW2RDa+FLKzSsUGH5uYrI+SXa48VvSzyK/kh5/L0kXA5nlodcbGz3ZQLcHC4AuhmI0KBbHXwjdcOC2MKshMjQ+zrk12NTSNTZ22pX68n/TE6CIemDZ/ZSYy3gbyB2j27HpxMaWxcBFCMCySgSoOfRv1ZaD6OOtQz1XsfRL25Qskg0wuvvUn00f18P+/M82oZs5zkk9N67umWmRAp/iFvFJeh1DSGQGhw228JXDQrx7tXoEpny17F37IrreZfEIl66/pMGig3KZXcwuh+Q4T7VgvEONiEVF2mT9GiKT40R9M1hdQJZhAuSJ2Zkhnf0n/yUPcunLuRCcloo/uNjUi0HN50zjP97IdkilAnRsVVMmj/3/xw8gHSA8jClEDLzv/2J5RZ5zbE8SK49UTLpFtRCVciXqDMXHRZbUzT/4yguxHyCoS2ALFiCTNvjM6PLqwQNI/shFRCAe/nYZHQOjLo3Wi3AhmMy/WHa4+4I2g=
Hi Marc,
I’m doing something related, which requires large numbers of flips (and other moves) on Delaunay Triangulations.
What I’ve done is written a class which contains a Triangulation_3 as well as other containers of cells, facets, edges, and vertices.
I use the container (i.e. a vector) of edges to determine the edge -> facet flip locations, and the container of facets to determine the facet -> edge flip locations.
I make copies of this class to perform proposed moves; the copy constructors take care of the various containers.
That gives you the triangulation and iterator (but look at Ranges, which are coming in C++20).
I’d been using Boost::optional to provide the semantics that Expected<T,E> is supposed to provide, that is, return a T or an exception E (except that option types return a T if the move succeeds or null if it fails). However, this seems to be not recommended, so I’m probably going to use simple error codes and wait for Zero overhead deterministic failures.
--
Adam Getchell
https://keybase.io/adamgetchell
https://keybase.io/adamgetchell
Dear all,
I am trying to achieve the following: given a Triangulation_3 T, enumerate all triangulations that can be reached from T by a flip. The problem is that T.flip(C) (where C is either an Edge or a Facet) changes T, so that creating other flips starting from T is cumbersome.
Concretely, I am iterating over Edges or Facets. Flipping will invalidate the iterator. But I also cannot use the iterator (which is a Face or Edge of T) on a copy of T.
One way out would be a method for generating a copy of T that also provides a handle to a given Cell in T. But I cannot see any method doing this.
Any help would be appreciated.
Thanks,
Marc
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Triangulation_3: creating all triangulations reachable by a flip, Marc Alexa, 12/10/2018
- Re: [cgal-discuss] Triangulation_3: creating all triangulations reachable by a flip, Adam Getchell, 12/10/2018
- Re: [cgal-discuss] Triangulation_3: creating all triangulations reachable by a flip, Marc Alexa, 12/14/2018
- Re: [cgal-discuss] Triangulation_3: creating all triangulations reachable by a flip, Adam Getchell, 12/10/2018
Archive powered by MHonArc 2.6.18.