For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Too slow to display many lines once

seumonkey's picture

I want to draw many lines with different color,here is my way:
Handle(AIS_Line) anAISLine = new AIS_Line(&PntStart,&PntEnd);
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's picture

Hi seumonkeu,

try this:

myAISContext->Display(anAISLine, Standard_False);


This should help.


seumonkey's picture

Done! Thank U!