I'm facing a quite strange problem so I need a little help. Does anybody know how should I tell the viewer to regenerate the displayed object? Let's say that I generate a TopoDS_Edge with a circular curve. When the edge is loaded into the AIS_InteractiveContext with the Display method the edge appears but it very "coarse". It seems that it is displayed like a polyline. Hovewer if I select and change the DisplayMode to shaded, the edge appears perfectly smooth. But when I switch back to wireframe it's again coarse. I tried to redisplay the object but no result. I use the following code:
for (myAISContext->InitCurrent();myAISContext->MoreCurrent ();myAISContext->NextCurrent ())
myAISContext->Redisplay(myAISContext->Current(), Standard_False, Standard_True);
Does anybody a solution?