Thanks for the reply. <div><br></div><div>I had reviewed the link you sent and actually found that by passing my pointer matrix to the UserMatrix it had a odd offset when applying the rotations and translations that are (at least in my current implementation) done correctly by passing the matrix to PokeMatrix. </div>
<div><br></div><div>I think my problem is more in the way I test for intersection by a line... I am using vtkOBBTree that takes vtkDataSet as an input and perhaps I am not updating the my actor's ivars to the (for example) vtkConeSource ivars. </div>
<div><br></div><div>Will let you know in a few. </div><div><br>Sergio </div><div><br><div class="gmail_quote">2011/3/21 Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font size="2"><font face="verdana,sans-serif">If I remember correctly, actors have a few matrices. Are you changing the right one? This might help:Â <a href="http://public.kitware.com/pipermail/vtkusers/2009-August/102309.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/2009-August/102309.html</a></font></font><div>
<font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif"><a href="http://public.kitware.com/pipermail/vtkusers/2009-August/102309.html" target="_blank"></a>HTH<br>
</font></font><br>
<div class="gmail_quote"><div><div></div><div class="h5">On Mon, Mar 21, 2011 at 15:53, Sergio Aguirre <span dir="ltr"><<a href="mailto:sergio.aguirre@gmail.com" target="_blank">sergio.aguirre@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi everyone <div><br></div><div>I am doing a small app that using a tracking system to interact with several actors (2 to 3) in a render window. </div><div><br></div><div>Basically what I do is to: </div><div><br></div><div>
1 - Set up a scene by placing each actor by using Actor->SetPosition() in the place I want it to be. - (Actors appear to be placed correctly once I render). </div><div>2 - The using a line I test for intersection points and if the do then I go to step 3. - (I am able to point to the objects but once my code validates the intersection its not necessarily in the in the place that I placed the actor in step 1) </div>
<div>3 - Pass a 4x4 Matrix to the actor via Actor->PokeMatrix(), this is done in a cycle. - (I am able to interact and rotate + translate the object). .</div><div>4 - Once I let the actor go, I cant "pick" it in the place I left it, I need to go back to the coordinates where I picked it in step 2. </div>
<div><br></div><div>So my question is, if I am building a a scene: </div><div><br></div><div>a) - What is the correct method to place and control an actor's location? </div><div>b) - When passing a matrix via PokeMatrix do I need to "update" the actor or make sure that all concatenations are done to be able to pick it where I left it? </div>
<div><br></div><div>Hope you can suggest some sources for review. </div><div><br>Thank you, </div><div><br><font color="#888888">Sergio  </font></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>