Forum archiveIssue archiveVisualization and 3D Viewer

Archived discussion

TriedronDisplay -- blinking when using 7.1.0

Visualization and 3D ViewerTue, 06/20/2017 - 06:565 replies

Browse this forum
QuestionAuthor

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.

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

 

Discussion

5 archived replies

Posts are displayed in their archived order.

01Commenter-1

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.

02Author

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.

03Commenter-1

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.

04Commenter-2

Hello, 

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

You just can call it once.

05Author

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.