mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 13:50:33 +05:00
remove some visual warning
This commit is contained in:
parent
5f28d09930
commit
c685dd39bf
@ -222,7 +222,7 @@ void VisualSceneSTLMeshing :: DrawScene ()
|
|||||||
|
|
||||||
if (showtrias)
|
if (showtrias)
|
||||||
{
|
{
|
||||||
float mat_coll[] = { 0.2, 0.2, 0.2, 1 };
|
float mat_coll[] = { 0.2f, 0.2f, 0.2f, 1.f };
|
||||||
glMaterialfv (GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, mat_coll);
|
glMaterialfv (GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, mat_coll);
|
||||||
glPolygonMode (GL_FRONT_AND_BACK, GL_LINE);
|
glPolygonMode (GL_FRONT_AND_BACK, GL_LINE);
|
||||||
|
|
||||||
|
@ -1981,7 +1981,7 @@ namespace netgen
|
|||||||
glEnable(GL_MAP2_VERTEX_3);
|
glEnable(GL_MAP2_VERTEX_3);
|
||||||
glEnable(GL_AUTO_NORMAL);
|
glEnable(GL_AUTO_NORMAL);
|
||||||
|
|
||||||
glMapGrid2f(hoplotn, 0.0, 0.9999, hoplotn, 0.0, 1.0);
|
glMapGrid2f(hoplotn, 0.0, 0.9999f, hoplotn, 0.0, 1.0);
|
||||||
glEvalMesh2(GL_FILL, 0, hoplotn, 0, hoplotn);
|
glEvalMesh2(GL_FILL, 0, hoplotn, 0, hoplotn);
|
||||||
|
|
||||||
glDisable (GL_AUTO_NORMAL);
|
glDisable (GL_AUTO_NORMAL);
|
||||||
@ -2123,7 +2123,7 @@ namespace netgen
|
|||||||
glEnable(GL_MAP2_VERTEX_3);
|
glEnable(GL_MAP2_VERTEX_3);
|
||||||
glEnable(GL_AUTO_NORMAL);
|
glEnable(GL_AUTO_NORMAL);
|
||||||
|
|
||||||
glMapGrid2f(8, 0.0, 0.999, 8, 0.0, 1.0);
|
glMapGrid2f(8, 0.0, 0.999f, 8, 0.0, 1.0);
|
||||||
glEvalMesh2(GL_FILL, 0, 8, 0, 8);
|
glEvalMesh2(GL_FILL, 0, 8, 0, 8);
|
||||||
|
|
||||||
glDisable (GL_AUTO_NORMAL);
|
glDisable (GL_AUTO_NORMAL);
|
||||||
@ -2657,7 +2657,7 @@ namespace netgen
|
|||||||
glEnable(GL_MAP2_VERTEX_3);
|
glEnable(GL_MAP2_VERTEX_3);
|
||||||
glEnable(GL_AUTO_NORMAL);
|
glEnable(GL_AUTO_NORMAL);
|
||||||
|
|
||||||
glMapGrid2f(8, 0.0, 0.999, 8, 0.0, 1.0);
|
glMapGrid2f(8, 0.0, 0.999f, 8, 0.0, 1.0);
|
||||||
glEvalMesh2(GL_FILL, 0, 8, 0, 8);
|
glEvalMesh2(GL_FILL, 0, 8, 0, 8);
|
||||||
|
|
||||||
glDisable (GL_AUTO_NORMAL);
|
glDisable (GL_AUTO_NORMAL);
|
||||||
|
Loading…
Reference in New Issue
Block a user