Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Extracting Voronoi diagram from Regular_triangulation_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Extracting Voronoi diagram from Regular_triangulation_3


Chronological Thread 
  • From: Bernhard Kornberger <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Extracting Voronoi diagram from Regular_triangulation_3
  • Date: Thu, 02 Dec 2010 01:07:36 +0100

Am 2010-12-02 00:45, schrieb randooom:

Hi and thanks for your reply.

I know about the duality of vd and dt, but I don't see how I could achieve
what I want, without extracting the vd first.

Basically I need to calculate the volume, the width and the surface of all
Voronoi cells.
I don't know how I would be able to get this directly out of the duality
without extraction.

If you know a way, I'm eager to know it, because that would save me the work
and the program memory :)


As your input is small, you can use this simple solution
for the volume:

a) Extract the tetrahedra incident to a certain vertex of the
triangulation using incident_cells(..).
b) Compute their dual Voronoi vertices
c) Triangulate the Voronoi vertices and sum up the volumes
of the tetrahedra. (remember, a Voronoi cell is convex)

As to the width: You have the Voronoi vertices of the cell.

As to the surface: You can use the vertices to build a polyhedron
and iterate over its triangles. Alternatively, you can get a
Voronoi facet by iterating over the triangulation cells incident
to an edge and taking their dual Voronoi vertices.

Best
Bernhard








--
Geom e.U. Softwareentwicklung Web: http://geom.at
DI Dr. Bernhard Kornberger Email:

Brockmanngasse 15 Firmenbuch-Nummer: 348784v
A-8010 Graz / Austria Landesgericht f. ZRS, Graz
Tel: ++43 / 699 / 81 300 122 UID: ATU65810848
Fax: ++43 / 316 / 83 32 27




Archive powered by MHonArc 2.6.16.

Top of Page