Subject: CGAL users discussion list
List archive
- From: "Wesley Smith" <>
- To:
- Subject: Re: [cgal-discuss] DelaunayTriangulation_3 remove()
- Date: Sat, 6 Oct 2007 12:22:05 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=i+BiWTuKc3kgE03Ec4cbBTdPPbIhPuEp4MaWyQplMvR+wMte1Qd9b2k2Ki7OY/TDJqpQpnHiUTY+LgEZI+Y+l+2MHB9K2E/FdxMOT1IDWTQSDQneq4AAxVP/DEBcGh6IS74p7oVPLiSqJm7eXcG0UNz93P/0s4pD1m1vtKlp3Tk=
Yes, I found those functions last night, thanks. I was looking in
Triangulation_3 by mistake which doesn't have any.
best,
wes
On 10/6/07, Andreas Fabri
<>
wrote:
> Hi Wesley,
>
> Maybe I get your question wrong, but there is a remove(Vertex_handle)
> function in the 3D Delaunay class.
>
> regards,
>
> andreas
>
> Wesley Smith wrote:
> > What would it take to implement a remove() function in
> > DelaunayTriangulation_3? Are there some basic building blocks already
> > in place to handle this? I've been looking at insert_in_conflict() in
> > Triangulation_3 which is what DelaunayTriangulation_3::insert() uses.
> > There are a number of comments in this function refering to 'hidden'
> > cells
> >
> > for example:
> > // If the new point is not in conflict with its cell, it is hidden.
> > if (!tester.test_initial_cell(c)) {
> > hider.hide_point(c,p);
> > return Vertex_handle();
> > }
> >
> > // Ok, we really insert the point now.
> > // First, find the conflict region.
> > std::vector<Cell_handle> cells;
> > Facet facet;
> >
> > cells.reserve(32);
> > find_conflicts
> > (c, tester, make_triple(Oneset_iterator<Facet>(facet),
> > std::back_inserter(cells),
> > Emptyset_iterator()));
> >
> > // Remember the points that are hidden by the conflicting cells,
> > // as they will be deleted during the insertion.
> > hider.process_cells_in_conflict(cells.begin(), cells.end());
> >
> >
> > // Insertion.
> > v = tds()._insert_in_hole(cells.begin(), cells.end(),
> > facet.first, facet.second);
> >
> > v->set_point (p);
> > // Store the hidden points in their new cells.
> > hider.reinsert_vertices(v);
> > return v;
> > }
> >
> >
> >
> > What does 'hidden' mean in this context?
> >
> > thanks,
> > wes
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
- DelaunayTriangulation_3 remove(), Wesley Smith, 10/05/2007
- Re: [cgal-discuss] DelaunayTriangulation_3 remove(), Andreas Fabri, 10/06/2007
- Re: [cgal-discuss] DelaunayTriangulation_3 remove(), Wesley Smith, 10/06/2007
- Re: [cgal-discuss] DelaunayTriangulation_3 remove(), Andreas Fabri, 10/06/2007
Archive powered by MHonArc 2.6.16.