Skip to content
Snippets Groups Projects
Commit f5d21cf2 authored by Vladimír Ulman's avatar Vladimír Ulman
Browse files

Decent change in the vizualization of vertex and its neigs.

parent 4e77e838
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ void displayAxes(void) ...@@ -109,7 +109,7 @@ void displayAxes(void)
int VertexID=10; int VertexID=10;
void ActiveMesh::displayMesh(void) 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) for (unsigned int i=0; i < ID.size(); i+=3)
...@@ -143,10 +143,10 @@ void ActiveMesh::displayMesh(void) ...@@ -143,10 +143,10 @@ void ActiveMesh::displayMesh(void)
glPointSize(4.0f); glPointSize(4.0f);
glBegin(GL_POINTS); glBegin(GL_POINTS);
// centre vertex: // 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); glVertex3f(Pos[VertexID].x,Pos[VertexID].y,Pos[VertexID].z);
// neigs: // neigs:
glColor3f(1.0,0.0,0.0); glColor3f(1.0f,0.0f,0.0f);
for (unsigned int i=0; i < neigs.size(); ++i) for (unsigned int i=0; i < neigs.size(); ++i)
glVertex3f(Pos[neigs[i]].x,Pos[neigs[i]].y,Pos[neigs[i]].z); glVertex3f(Pos[neigs[i]].x,Pos[neigs[i]].y,Pos[neigs[i]].z);
glEnd(); glEnd();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment