Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: [cgal-discuss] Re: Copy of Delaunay triangulation to a simple Triangulation

Subject: CGAL users discussion list

List archive

Re: Re: [cgal-discuss] Re: Copy of Delaunay triangulation to a simple Triangulation


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: Re: [cgal-discuss] Re: Copy of Delaunay triangulation to a simple Triangulation
  • Date: Tue, 06 Mar 2012 16:58:22 +0100
  • Organization: GeometryFactory

Le mardi 06 mars 2012 16:48:37 Sebastien Loriot a écrit :
> On 03/06/2012 04:22 PM, petitmalin wrote:
> > hi,
> > thank you for your reply really rapid.
> > In fact, my program uses Delaunay triangulation during the whole process
> > except at the last step, I want to do some local modifications of the
> > triangulation but without the Delaunay triangulation constraint. That's
> > why
> > I want to crate a simple triangulation which is copied from the Delaunay
> > and the local modifications could be done with this new triangulation.
> >
> > I have tested the tds.swap() but it does not work. In fact, if we have
> > simple Triangulatio1, Triangulation2, and Delaunay1,Delaunay2. We can
> > have
> > Triangulation1.tds()=Triangulation2.tds() and
> > Delaunay1.tds()=Delaunay2.tds(), but never
> > Triangulation1.tds()=Delaunay1.tds() with CGAL. Note also that in the
> > typedefs, we use exactly the same Triangulation_data_strcture_3 for both
> > simple triangulation and Delaunay triangulation.
> >
> > Do you have any suggestion about my problem? best regards
>
> Don't really get what you want to do but you might want to do the following:
>
> Delaunay_triangulation_3 dt1;
> Triangulation_3 t1(dt1);

Or even a downcast:

Triangulation_3& t1 = dt1;

that should be possible because CGAL::Delaunay_triangulation_3<K,
TDS,CGAL::Fast_location> derives from CGAL::Triangulation_3<K,TDS>.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.16.

Top of Page