Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Triangulation data structure delete cell

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Triangulation data structure delete cell


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] Triangulation data structure delete cell
  • Date: Mon, 07 Jan 2008 10:00:00 +0100
  • Organization: INRIA


a écrit :
Please help!

I use CGAL on Windows XP with Microsoft Visual Studio 2005.

I would like to use the Delaunay_triangulation_3 object as a container of the vertices, edges, facets and cells.

You may have missed that only vertices and cells are actually stored.
Facets and edges are only implicit, that is, referenced by a cell with
1 or 2 indices.

Trying to do so, I created a Triangulation on a vertices which are the corners of a cube. So far so good.
Now the container functionality: I would like to delete one finite cell, and the cell only by:
T->tds().delete_cell(c);
where 'T' is a Delaunay_triangulation_3 object and 'c' is a Cell_handle on an existing cell (T_copy->tds().is_cell(c) is true). I would like to expect that the rest of the triangulation structure is preserved, but no. Putting out the numbers, I get one cell less (OK), but also some finite facets less too (Not OK)!
I do understand that such expectation is not really in the sense of the
triangulation functionality, but I do need it!

If you want to manage edges and facets, you need to do that in your own
code.

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.16.

Top of Page