Skip to content
Snippets Groups Projects
Commit ecae9054 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 8eb1e514
No related branches found
No related tags found
No related merge requests found
// $Id: Mesh.cpp,v 1.145 2005-12-16 19:17:34 geuzaine Exp $ // $Id: Mesh.cpp,v 1.146 2005-12-19 02:30:33 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -68,10 +68,7 @@ void draw_polygon_2d(double r, double g, double b, int n, ...@@ -68,10 +68,7 @@ void draw_polygon_2d(double r, double g, double b, int n,
glColor3f(r, g, b); glColor3f(r, g, b);
glBegin(GL_LINE_STRIP); glBegin(GL_LINE_STRIP);
for(int i = 0; i < n; i++) for(int i = 0; i < n; i++)
if(z) glVertex3d(x[i], y[i], z ? z[i] : 0.);
glVertex3d(x[i], y[i], z[i]);
else
glVertex2d(x[i], y[i]);
glEnd(); glEnd();
glFlush(); glFlush();
glDrawBuffer(GL_BACK); glDrawBuffer(GL_BACK);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment