Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Delaunay triangulation_2 opengl rendering problem

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Delaunay triangulation_2 opengl rendering problem


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Delaunay triangulation_2 opengl rendering problem
  • Date: Tue, 14 Feb 2012 15:05:22 +0100
  • Organization: GeometryFactory

Le mardi 14 février 2012 05:58:26 mysmax a écrit :
> hello I am using below code
>
> T.insert(p.begin(),p.end());
> glDisable(GL_LIGHTING);
> glColor4f(1.0f,1.0f,1.0f,1.0f);
> glPolygonMode(GL_FRONT_AND_BACK , GL_LINE);
> glBegin(GL_TRIANGLE_STRIP);

Instead of GL_TRIANGLE_STRIP, use:

glbegin(GL_LINES);

> eit= T.finite_edges_begin();
> while (eit != T.finite_edges_end())
> {
>
> pt1=eit->first->vertex(0)->point();
> glVertex2d(pt1.x(),pt1.y());
> pt2=eit->first->vertex(1)->point();
> glVertex2d(pt2.x(),pt2.y());
>
> ++eit;
> }
> glEnd();
>
> from above I am getting missing edges so please any one suggest me.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.16.

Top of Page