mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
fix drawing of colormap (last piece was missing)
This commit is contained in:
parent
0170789bbf
commit
27679c231a
@ -582,8 +582,9 @@ namespace netgen
|
||||
glDisable (GL_DEPTH_TEST);
|
||||
glBegin (GL_QUAD_STRIP);
|
||||
|
||||
for (double x = minx; x <= maxx; x += (maxx - minx) / 50)
|
||||
for (auto i : Range(50))
|
||||
{
|
||||
double x = minx + i*1.0/49*(maxx-minx);
|
||||
SetOpenGlColor (x, minx, maxx);
|
||||
glVertex3d (x, miny, -5);
|
||||
glVertex3d (x, maxy, -5);
|
||||
|
Loading…
Reference in New Issue
Block a user