<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 5.50.4134.100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=MingLiu size=2>Dear all VTK user:</FONT></DIV>
<DIV><FONT face=²Ó©úÅé size=2>I want to update the position of the object by the
encoder signal and show the path of the object move! I try to
renWin->EraseOff but it doesn't work! But I find that function was work
in ..\cowwalk.tcl. I try to use the user interface to change the cow
position, and the image of the cows will keep on the screen.
Why...?</FONT></DIV>
<DIV><FONT face=²Ó©úÅé size=2>My code was something like that:--------</FONT></DIV>
<DIV><FONT face=MingLiu size=2></FONT> </DIV>
<DIV><FONT face=MingLiu size=2>for ( i = 1; i < 2000; i++)</FONT></DIV>
<DIV><FONT face=MingLiu
size=2> { <BR> ren1->AddActor(joinActor);<BR> ren1->AddActor(cutterActor);<BR> ren1->SetBackground(0.1,0.2,0.4);<BR> renWin->SetSize(500,500);<BR> renWin->Render();</FONT></DIV>
<DIV><FONT face=MingLiu size=2></FONT> </DIV>
<DIV><FONT face=MingLiu size=2> //print out the input<BR> cout
<< "please enter x, y, z" <<"\n";<BR> cin
>>x>>y>>z;<BR> a=x+a;<BR> b=y+b;<BR> c=z+c;</DIV>
<DIV> </DIV>
<DIV> cutterActor->SetPosition(a, b
,c);<BR> ren1->AddActor(cutterActor);<BR> renWin->Render();<BR> renWin->Render();<BR> renWin->EraseOff;</DIV>
<DIV> </DIV>
<DIV> <BR> }</DIV>
<DIV>-------------------------</DIV>
<DIV>the for loop just simulate the encoder signal input!</DIV>
<DIV> </DIV>
<DIV><FONT face=MingLiu>Please help! </FONT></DIV>
<DIV>Thanks for any advise!</DIV>
<DIV> </DIV>
<DIV>Best regards,</DIV>
<DIV>German Leung </FONT></DIV></BODY></HTML>