Skip to content
Snippets Groups Projects
Commit 4449a44f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

use default line width to draw bounding boxes and axes
parent d5f1efb6
No related branches found
No related tags found
No related merge requests found
// $Id: Axes.cpp,v 1.20 2004-02-07 01:40:19 geuzaine Exp $ // $Id: Axes.cpp,v 1.21 2004-04-24 16:24:34 geuzaine Exp $
// //
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// //
...@@ -44,8 +44,8 @@ void Draw_Axes(double s) ...@@ -44,8 +44,8 @@ void Draw_Axes(double s)
b = .1 * s; b = .1 * s;
c = 0.666 * b; c = 0.666 * b;
glLineWidth(1.); glLineWidth(CTX.line_width);
gl2psLineWidth(1. * CTX.print.eps_line_width_factor); gl2psLineWidth(CTX.line_width * CTX.print.eps_line_width_factor);
glColor4ubv((GLubyte *) & CTX.color.axes); glColor4ubv((GLubyte *) & CTX.color.axes);
glBegin(GL_LINES); glBegin(GL_LINES);
...@@ -142,8 +142,8 @@ void Draw_SmallAxes(void) ...@@ -142,8 +142,8 @@ void Draw_SmallAxes(void)
zx = l * CTX.rot[2][0]; zx = l * CTX.rot[2][0];
zy = l * CTX.rot[2][1]; zy = l * CTX.rot[2][1];
glLineWidth(1.); glLineWidth(CTX.line_width);
gl2psLineWidth(1. * CTX.print.eps_line_width_factor); gl2psLineWidth(CTX.line_width * CTX.print.eps_line_width_factor);
glColor4ubv((GLubyte *) & CTX.color.small_axes); glColor4ubv((GLubyte *) & CTX.color.small_axes);
glBegin(GL_LINES); glBegin(GL_LINES);
......
// $Id: Mesh.cpp,v 1.80 2004-04-24 15:05:40 geuzaine Exp $ // $Id: Mesh.cpp,v 1.81 2004-04-24 16:24:34 geuzaine Exp $
// //
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// //
...@@ -94,9 +94,9 @@ void Draw_Mesh(Mesh * M) ...@@ -94,9 +94,9 @@ void Draw_Mesh(Mesh * M)
// draw the bounding box of the mesh if we are in fast redraw mode // draw the bounding box of the mesh if we are in fast redraw mode
// and there is no geometry // and there is no geometry
glLineWidth(CTX.line_width);
if(!CTX.mesh.draw && Tree_Nbr(M->Vertices) && !Tree_Nbr(M->Points)) { if(!CTX.mesh.draw && Tree_Nbr(M->Vertices) && !Tree_Nbr(M->Points)) {
glColor4ubv((GLubyte *) & CTX.color.fg); glColor4ubv((GLubyte *) & CTX.color.fg);
glLineWidth(CTX.line_width);
glBegin(GL_LINE_LOOP); glBegin(GL_LINE_LOOP);
glVertex3d(CTX.min[0], CTX.min[1], CTX.min[2]); glVertex3d(CTX.min[0], CTX.min[1], CTX.min[2]);
glVertex3d(CTX.max[0], CTX.min[1], CTX.min[2]); glVertex3d(CTX.max[0], CTX.min[1], CTX.min[2]);
......
// $Id: Post.cpp,v 1.56 2004-04-24 15:05:40 geuzaine Exp $ // $Id: Post.cpp,v 1.57 2004-04-24 16:24:34 geuzaine Exp $
// //
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// //
...@@ -337,6 +337,7 @@ void Draw_Post(void) ...@@ -337,6 +337,7 @@ void Draw_Post(void)
v = (Post_View *) List_Pointer(CTX.post.list, iView); v = (Post_View *) List_Pointer(CTX.post.list, iView);
if(v->Visible && v->Type == DRAW_POST_3D) { if(v->Visible && v->Type == DRAW_POST_3D) {
glColor4ubv((GLubyte *) & CTX.color.fg); glColor4ubv((GLubyte *) & CTX.color.fg);
glLineWidth(CTX.line_width);
glBegin(GL_LINE_LOOP); glBegin(GL_LINE_LOOP);
glVertex3d(v->BBox[0], v->BBox[2], v->BBox[4]); glVertex3d(v->BBox[0], v->BBox[2], v->BBox[4]);
glVertex3d(v->BBox[1], v->BBox[2], v->BBox[4]); glVertex3d(v->BBox[1], v->BBox[2], v->BBox[4]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment