Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / How to reduce Display objects in v3d_View

How to reduce Display objects in v3d_View

How to reduce Display objects in v3d_View
dongman 2013/05/09 13:17
I'd like to dispaly millions of points in V3d_View

The related codes is like the belows.


Handle_AIS_InteractiveContext AISObject;

for(i=1; i<10000000000000; i++)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nIdx += 1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gp_Pnt PosPt(m_adToolPos[nIdx], m_adToolPos[nIdx+1], m_adToolPos[nIdx+2]);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle(ISession_Point) PathLine=new ISession_Point(PosPt);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AISObject->Display(PathLine,0,0,FALSE);
               
     }

AISObject->UpdateCurrentViewer();

But, When rotating and panning , these are too slow.

So, Is there ways to reduce display objects when rotating and panning in opencascade?

Please let me know the ways.

Thank you in advance.

François Lauzon 2013/05/09 15:33
Hello Dongman,
The performance you are getting is expected... If you need to improve performance, you should implement a new Interactive Object that will display all those points using the same Interactive Object, and this object you take advantage of the Primitive Array (in your case Graphic3d_ArrayOfPoints) which will be way faster than what you describe. We are able to display millions of points (between 15-80 millions is common in our case) and have good performance using NVidia Quadro 4000 graphic card.

Good luck,
Francois.
dongman 2013/05/10 07:33
Thank you for your help.

But, I don't know about the way of Interactive Object with Graphic3d_ArrayOfPoints.

Is thre any examples or websites for that?

Thank you in advance.

 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map