Forum archiveIssue archiveOther usage issues

Archived discussion

TrihedronDisplay in V3d_WIREFRAME mode, problem resolved

Other usage issuesWed, 11/14/2007 - 17:062 replies

Browse this forum
QuestionAuthor

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.

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

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

Greetings
Sioutis Author

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi,
Excellent workout!

Regards
N. Commenter-1

02Author

Hello Nair

Maybe you could find interesting also :

http://www.opencascade.org/org/forum/thread_12479/

for z buffered trihedron

Greets

Author