Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] select edge in qt with mouse

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] select edge in qt with mouse


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] select edge in qt with mouse
  • Date: Thu, 09 Sep 2010 09:32:09 +0200
  • Organization: GeometryFactory

On 09/09/2010 03:41, pascal8361 wrote:

Hello

I did some drawing like in the Delaunay triangulation demo.

painterostream<< Segment(...);
than I draw the vertices ....

that is working out quite well ...

know I want to go on and select one of my edges with the mouse cursor, after
selecting I need the two points incident to the edge ...

that should not be to hard but I don't find a way - thanks for help

best
Pascal

Hi Pascal,

If you want to do it in the spirit of the current GraphicsView based
demos you should have a look at the file
demo/Triangulation_2/TriangulationCircumcircle.h
and how it is integrated in the demo Delaunay_triangulation_2.cpp

The idea is that the class gets mouse move events, performs a
point location in the triangulation. Instead of computing the
circumcircle of a face you could check which of the three edges
of the face is closest.

hope this helps,

andreas



Archive powered by MHonArc 2.6.16.

Top of Page