From f5d21cf2d272780984969ab729f780b6d71b3fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Ulman?= <ulman@mpi-cbg.de> Date: Thu, 6 Oct 2016 14:52:26 +0200 Subject: [PATCH] Decent change in the vizualization of vertex and its neigs. --- src/graphics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphics.cpp b/src/graphics.cpp index 51db8e9..8717bdc 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -109,7 +109,7 @@ void displayAxes(void) int VertexID=10; void ActiveMesh::displayMesh(void) { - glColor3f(0.8,0.8,0.8); + glColor3f(0.8f,0.8f,0.8f); /* for (unsigned int i=0; i < ID.size(); i+=3) @@ -143,10 +143,10 @@ void ActiveMesh::displayMesh(void) glPointSize(4.0f); glBegin(GL_POINTS); // centre vertex: - glColor3f(0.0,0.0,1.0); + glColor3f(0.0f,0.0f,1.0f); glVertex3f(Pos[VertexID].x,Pos[VertexID].y,Pos[VertexID].z); // neigs: - glColor3f(1.0,0.0,0.0); + glColor3f(1.0f,0.0f,0.0f); for (unsigned int i=0; i < neigs.size(); ++i) glVertex3f(Pos[neigs[i]].x,Pos[neigs[i]].y,Pos[neigs[i]].z); glEnd(); -- GitLab