Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Voronoi from Delaunay (3D)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Voronoi from Delaunay (3D)


Chronological Thread 
  • From: Patricio German Barletta Roldan <>
  • To:
  • Subject: Re: [cgal-discuss] Voronoi from Delaunay (3D)
  • Date: Thu, 7 Jul 2016 18:05:30 -0300
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:7kq55hPYhiGwl+vzwUEl6mtUPXoX/o7sNwtQ0KIMzox0Kfz8rarrMEGX3/hxlliBBdydsKMczbCG+Pm8CCQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd+KyZ7nnLnuqtX6WEZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYhvQ66sQVUbnmZ79qCvtDHTE+OiY04tfqvF/NV0yU934EWyIXlBRPRAPK5RW/UpbquTbhrblB33yRMsTyCLw1Qj+/9LxDSRnyiS5BOSRq3nvQj5lIhb5BoRmgoFRQzpTRaYfdHvNkeq7BYdpSf21FUs9XH3hZCIqma4YTE+MpMuNRro27rFwL+0jtTTKwDf/in2cbzkT92rc3hrws

Yes I tried draw_dual and got a mess of unconnected lines. I will try iterating through the faces.
I need to store the voronoi cells (along with their corresponding points) and then calculate their volume.
I've read that in order to calculate their volume I have to triangulate each cell independently. If that's true, then there's not much point in me worrying about this, but I fear this option would be  too computationally demanding.

On Jul 7, 2016 1:40 PM, "Monique Teillaud" <> wrote:
Hi

What do you want to do with the Voronoi diagram? If you just need to visualise it, it is easier to iterate on facets and draw their dual. 
You could have a look at function draw_dual in Delaunay_triangulation_3.h 

(indeed, the cells won't "show up in order” in the iterator, since there is no natural order for cells incident to a given vertex in 3d) 

best,
--
Monique Teillaud 
https://members.loria.fr/Monique.Teillaud/
INRIA Nancy - Grand Est, LORIA 
Institut National de Recherche en Informatique et Automatique 


Hi!
    I know this is probably a FAQ, but I'm new to CGAL and all the other
related posts didn't go into enough detail for me to understand.

    I've successfully computed the Delaunay triangulation of a set of ~150
points (I expect this number to go as high as 10 000) with the EPEC kernel
in 3d. Now I need to get the corresponding Voronoi diagram with each Voronoi
cell somehow associated to its corresponding point, so I can process this
info later.
    I tried iterating over every vertex of my Delaunay triangulation and
then iterating over every incident cell to this vertex to get the
circumcenter of every cell. I figured that connecting each circumcenter as
they appeared would give me the corresponding Voronoi cell. The code looks
(somewhat) like this:

// T is the triangulation
*for(fv_ite = T.finite_vertices_begin(); fv_ite != T.finite_vertices_end();
fv_ite ++) {    
       T.incident_cells(fv_ite, std::back_inserter(incident_cell));
       ite_incident_cell = incident_cell.begin();
       c_han = *ite_incident_cell;
       for( ite_incident_cell = incident_cell.begin(); ite_incident_cell !=
incident_cell.end(); ite_incident_cell++ ) {     
                T.dual(c_han);
                //some other stuff
        }
}*

   But it turns out that incident cells don't show up in order, and when I
connect the circumcenters I get a doodle. I also tried *dual_support()* and
*draw_duall()* but the resulting diagram is a mess of unconnected lines, not
cells. Also I need to bound the Voronoi diagram and the segments make this
difficult.

    I know this is probably an easy task, but I just can't get it done.
Hope you guys can give me a hand.

--------------------------------------------------------------------------------------------------------------------------------------------

   I'm attaching 2 images obtained with pymol. The green sphere is the
first vertex, the red lines are the incident cells edges, the light blue
spheres are the circumcenters connected by light blue lines in the order
they appeared.

<http://cgal-discuss.949826.n4.nabble.com/file/n4662044/delaunay%2Bvoronoi%2Batom.png>

<http://cgal-discuss.949826.n4.nabble.com/file/n4662044/delaunay%2Bvoronoi.png>



--
View this message in context: http://cgal-discuss.949826.n4.nabble.com/Voronoi-from-Delaunay-3D-tp4662044.html
Sent from the cgal-discuss mailing list archive at Nabble.com.

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






Archive powered by MHonArc 2.6.18.

Top of Page