TrihedronDisplay in V3d_WIREFRAME mode, problem resolved

I have also seen in previous posts that the view trihedron in V3d_WIREFRAME mode
changes colors depending on the state of the view.This behaviour can be easily
corrected by altering call_triedron_redraw function in OpenGl_triedron.c of TKOpengl.
The only change needed is to erase the LightOff() function that is called before the
Axis name drawing and move this function call just before the initial axis drawing.
Below is the code portion with the modification.I don't know if this is considered to
be a bug but anyway i believe it might help some of you out there.

glLineWidth (TriedronWidth);
//change start
LightOff(); //This is the new call
//change stop

/* dessin des axes */
glVertex3dv( TriedronOrigin );
glVertex3dv( TriedronAxeX );

Sioutis Fotis

Sharjith Naramparambath's picture

Excellent workout!

N. Sharjith

Fotis Sioutis's picture

Hello Nair

Maybe you could find interesting also :

for z buffered trihedron