<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=452542608-01122003>Hi Jean-Baptiste,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><SPAN class=452542608-01122003></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN class=452542608-01122003>You can get the center
of A and setfocal point of the camera with this
center.</SPAN></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=452542608-01122003></SPAN> </FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=452542608-01122003> </SPAN> <SPAN
class=452542608-01122003>A-></SPAN>GetActor()->GetBounds(bounds);
</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2> center[0] = (bounds[0] +
bounds[1])/2.0;<BR> center[1] = (bounds[2] +
bounds[3])/2.0;<BR> center[2] = (bounds[4] + bounds[5])/2.0;</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><BR> vtkCamera* camera =
GetRenderer()->GetActiveCamera();<BR> camera->SetFocalPoint(center); <BR></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Mensaje original-----<BR><B>De:</B> vtkusers-admin@vtk.org
[mailto:vtkusers-admin@vtk.org]<B>En nombre de </B>Jean-Baptiste
Estival<BR><B>Enviado el:</B> divendres, 28 / novembre / 2003
14:21<BR><B>Para:</B> vtkusers@vtk.org<BR><B>Asunto:</B> [vtkusers]
vtkCamera<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2>I have some problem with positionning my
camera.</FONT></DIV>
<DIV><FONT face=Arial size=2>My cam may point on the center of object A.
so the object A must not move in the render view</FONT></DIV>
<DIV><FONT face=Arial size=2>but when i do ResetCamera, all the view moves and
only object B really moves.</FONT></DIV>
<DIV><FONT face=Arial size=2>Can someone help me ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>