Mon, 06/21/2004 - 12:57
Hi everybody,
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);
myAISContext->UpdateCurrentViewer();
Does anybody a solution?
Andras
Mon, 06/21/2004 - 12:59
Sorry but I had no feedback from the server and I posted several time :)
Andras
Sun, 10/24/2004 - 22:25
Szia András,
Légyszives küld már el az e-mail cimmed.
Szakmai illetve munkaügyében szeretnék veled beszélni.
Üdv:zsolti
Mon, 06/21/2004 - 13:38
Hi
Reference sample CDisplayAnimationDoc::OnShading()
Joe
Wed, 06/23/2004 - 01:07
Thanks Joe,
It works.
Andras
Sat, 06/26/2004 - 01:46
Try this in OCC_3dView::OnMouseMove(UINT nFlags, CPoint point)
...
switch (myCurrentMode)
{
case CurAction3d_DynamicZooming :
myView->Zoom(point.y, 0, myYmax, 0);
// save the current mouse coordinate in min \n";
myXmax = point.x;
myYmax = point.y;
break;
Andras
Sat, 06/26/2004 - 01:48
Sorry it was for another topic :)