Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: How to get some info from a Delaunay Triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: How to get some info from a Delaunay Triangulation


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] Re: How to get some info from a Delaunay Triangulation
  • Date: Wed, 09 May 2012 14:41:58 +0200
  • Organization: GeometryFactory

On 09/05/2012 14:35, Sebastien Loriot (GeometryFactory) wrote:
On 05/09/2012 02:21 PM, horstmann wrote:
Hi Sebastien,

thanks for your fast and accurate answer.

I'm still a bit confused whit the second parameter.

- for each tetrahedron, the position of its four vertices (in ascending
order).

Triangulation::Cell_handle cell=....
cell->vertex(i).point(); //for i=0; i<4
cf [2,3]

When you say "Triangulation::Cell_handle cell=.... " What should I
assign to
'cell'?

I guess I need an iterator over finite_cells, don't I ?

At this moment I'm doing this:

typedef CGAL::Exact_predicates_inexact_constructions_kernel
K;
typedef CGAL::Triangulation_vertex_base_with_info_3<unsigned, K>
Vb;
typedef CGAL::Triangulation_data_structure_3<Vb>
Tds;
typedef CGAL::Triangulation_3<K, Tds>::Cell_handle Cell_handle;

................
................
................

Cell_handle cell = ... ?? ;

Delaunay::Finite_cells_iterator fit;

for(fit = dt.finite_cells_begin() ; fit != dt.finite_cells_end() ; fit++,
i++)
for(i=0;i<4;i++)
cell->vertex(i).point();
fit->vertex(i).point() will work.

Note that it is often helpful to look at the manual page of the
base class. As a Delaunay_triangulation_3 is a Triangulation_3
you find the types here:

http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Triangulation_3_ref/Class_Triangulation_3.html#Cross_link_anchor_1363

together with the following sentence:

Iterators and circulators are convertible to the corresponding handles, thus the user can pass them directly as arguments to the functions.

andreas


Sebastien.


Is all of that correct? What am I missing?
Thank you again so much !!
EDU.



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/How-to-get-some-info-from-a-Delaunay-Triangulation-tp4617393p4620270.html

Sent from the cgal-discuss mailing list archive at Nabble.com.





--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912 skype: andreas.fabri



Archive powered by MHonArc 2.6.16.

Top of Page