Skip to content

Commit 755b120

Browse files
committed
Improve vector visualization
1 parent 1a64674 commit 755b120

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GUI/OpenGL/MiniGL.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ void MiniGL::coordinateSystem()
118118

119119
void MiniGL::drawVector(const Vector3r &a, const Vector3r &b, const float w, float *color)
120120
{
121-
float thickness = 0.001f * w;
121+
float thickness = 0.005f * w;
122122

123123
// Draw a thick line as a cylinder with constant color.
124-
drawCylinder(a, b, color, thickness, 8, false);
124+
drawCylinder(a, b, color, thickness, 32, false);
125125
}
126126

127127
void MiniGL::drawCylinder(const Vector3r &a, const Vector3r &b, const float *color, const float radius, const unsigned int subdivisions, const bool lighting)
@@ -465,7 +465,7 @@ void MiniGL::init(const int width, const int height, const char *name, const boo
465465

466466
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
467467
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
468-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
468+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE);
469469
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
470470
glfwWindowHint(GLFW_SAMPLES, 4);
471471

0 commit comments

Comments
 (0)