<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>a little problem with threads.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi,<BR>
<BR>
I am using a thread to control a rendering loop that simulates the motion of an articulated<BR>
system. Everything is implemented in Python.<BR>
<BR>
#starting the thread for solid rendering<BR>
thread.start_new_thread(self.rendering_loop,(ren,VTKwindow,))<BR>
<BR>
def rendering_loop(self,ren,VTKwindow): <BR>
#simulation loop<BR>
for i in range( (self.pt-30)/30 ):<BR>
self.genericHMTcompute( self.X[0, i*30], self.X[1,i*30] )<BR>
self.Link1assembly.SetUserTransform( self.Link1.Trans )<BR>
self.Link2assembly.SetUserTransform( self.Link2.Trans )<BR>
VTKwindow.Render()<BR>
<BR>
This is done in order to rotate or translate the camera or to select a button<BR>
from my graphical user interface while the simulutation is still active.<BR>
<BR>
My problem is that if I rotate or translate the camera the simulation works fine, but<BR>
if I do not choose an event the simulation stops.<BR>
<BR>
Can anybode tell what is going wrong?<BR>
<BR>
Thanks,<BR>
<BR>
Antonio Matta.<BR>
<BR>
<BR>
<BR>
Antonio Alejandro Matta Gómez.<BR>
Computer Software Engineer.<BR>
Research Assistant - Robotics and Automation Group.<BR>
Pontificia Universidad Javeriana - Cali.<BR>
Home Page: <A HREF="http://gar.puj.edu.co/Members/amatta/">http://gar.puj.edu.co/Members/amatta/</A><BR>
<BR>
Anyone who needs me, and whom I can help is<BR>
my neighbor.<BR>
Benedict XVI.<BR>
Deus Caritas Est.<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>