Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Cast Voronoi::Face to Polygon_2?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Cast Voronoi::Face to Polygon_2?


Chronological Thread 
  • From: Tom Kazimiers <>
  • To:
  • Subject: [cgal-discuss] Cast Voronoi::Face to Polygon_2?
  • Date: Wed, 26 Aug 2009 01:07:58 +0200

Hi,

I want to clip voronoi faces to triangles, so that only that part of the
face in the triangle results.
For faces having no infinite vertices this works straight forward: I
iterate around the vornoi faces halfedges and store their source point
in a new polygon. After this, I can clip the new polygon to my triangle.
But when it comes to faces with infinite vertices I have a problem. I
tryed to write some algorithm that does the culling manually by tracing
hits from the infinite rays with the triangle. Unfortunately, the
implementation is quite complex and I currently can't find an error that
is causing strange effects.
So I am interested in an alternative solution and ask if you have an idea :)
A solution would be to get the voronoi face somehow casted to a
Polygon_2 and do everything as normal. But how does one do that? Is it
possible at all to do CGAL::intersect() with infinite faces?

Thanks in advance,
Tom


  • [cgal-discuss] Cast Voronoi::Face to Polygon_2?, Tom Kazimiers, 08/26/2009

Archive powered by MHonArc 2.6.16.

Top of Page