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 / Too slow to display many lines once

Too slow to display many lines once

Too slow to display many lines once
seumonkey 2012/10/23 19:56
I want to draw many lines with different color,here is my way:
Handle(AIS_Line) anAISLine = new AIS_Line(&PntStart,&PntEnd);
     anAISLine->SetColor(mycolor);
     myAISContext->Display(anAISLine);
But for every line I have to use these same code, it is very slow to display all lines once,what can I do? Maybe use AIS_Line array ,just as TopTools_Array1OfShape ? And I don't know how to color the TopoDS_Shape ,otherwise I will use TopoDS_Shape instead of the AIS_Line ?
Pawel 2012/10/24 02:21
Hi seumonkeu,

try this:

for(...)
{
anAISLine->SetColor(mycolor);
myAISContext->Display(anAISLine, Standard_False);
}

myAISContext->UpdateCurrentViewer();

This should help.

Pawel
seumonkey 2012/10/24 08:35
      Done! Thank U!
 
 
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