
Fri, 04/07/2006 - 22:18
Forums:
What's the approach of coloring an TopoDS_Edge of an AIS_InteractiveObject? I only want a selected edge(s) to be a specific color, not the entire object. Any ideas would be appreciated. Thanks.
I've got this much and tried a few things to color the edge but I haven't had much luck.
if(myAISContext->MoreSelected())
{
if(myAISContext->HasSelectedShape())
{
//Color the selected edge
TopoDS_Shape sh = myAISContext->SelectedShape();
if(sh.ShapeType() == TopAbs_EDGE)
{
//Ok I know this is an edge but how to do I color
//it and get it redisplayed with that color?????
}
}
}
Sat, 04/08/2006 - 01:11
Hi,
for AIS_InteractiveContext exists methods like SetHighlightColor or SelectionColor. I think they will give you some help...
Greets,
Patrik