TriedronDisplay -- blinking when using 7.1.0

Hello, 

I am using TriedronDisplay() function, with Redraw() function called every timer tick.

It was all good during ver 6.8.0.  But when using 7.1.0,  The Trihedron starts blinking when Redraw() is called.

How should I solve this?  Thank you.

Here is the Code:

----------------------------------------------------------------------

myView->TriedronDisplay(Aspect_TOTP_LEFT_UPPER, Quantity_NOC_RED, 0.1, V3d_ZBUFFER);

myView->Redraw(); // <-- called every 0.5 sec.

------------------------------------------------------------------------

 

Kirill Gavrilov's picture

What is your configuration (you can use V3d_View::DiagnosticInformation())?
Which GUI framework is used in this application?
It looks like you have no proper OpenGL driver installed.

Chi-en Lo's picture

Hi Kirill,

Sorry that I'm pretty new to OpenCascade.  This might be a pretty dumb question:

I tried to call V3d_View::DiagnosticInformation()  as following:

But than I don't know how to get the information form 'dict'.

-----------------------------------------------------------

myView->Redraw(); 

TColStd_IndexedDataMapOfStringString dict; 

myView->DiagnosticInformation(dict, Graphic3d_DiagnosticInfo_Complete);

-------------------------------------------------------------

I'm using  NVIDIA GeForce 8600 GT (Microsoft Corporation - WDDM v1.1),

The Application is C# winform.  

Thank you.

Kirill Gavrilov's picture

Sorry that I'm pretty new to OpenCascade.  This might be a pretty dumb question:

I tried to call V3d_View::DiagnosticInformation()  as following:

But than I don't know how to get the information form 'dict'.

Draw Harness is a useful source of code snippets for using OCCT functionality - you should try looking into it if you want to know OCCT better.

Testing problems in Draw Harness is also useful practice - bugs reproducible in Draw Harness can be easily reported on OCCT bug tracker.

Anton Shabalin's picture

Hello, 

You don't need to call v3dView->TriedronDisplay every time before Redraw().

You just can call it once.

Chi-en Lo's picture

Hello Shabalin,

Thank you for the reply. But I did call v3dView->​TriedronDisplay only once. The Trihedron flashes when I call Redraw().

Maybe the code I pasted is misleading. Sorry for that.