Tue, 10/23/2012 - 21:56
Forums:
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 ?
Wed, 10/24/2012 - 04:21
Hi seumonkeu,
try this:
for(...)
{
anAISLine->SetColor(mycolor);
myAISContext->Display(anAISLine, Standard_False);
}
myAISContext->UpdateCurrentViewer();
This should help.
Pawel
Wed, 10/24/2012 - 10:35
Done! Thank U!