<!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>&nbsp;&nbsp;</FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=452542608-01122003>&nbsp;</SPAN>&nbsp;<SPAN 
class=452542608-01122003>A-&gt;</SPAN>GetActor()-&gt;GetBounds(bounds); 
</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>&nbsp;center[0] = (bounds[0] + 
bounds[1])/2.0;<BR>&nbsp;center[1] = (bounds[2] + 
bounds[3])/2.0;<BR>&nbsp;center[2] = (bounds[4] + bounds[5])/2.0;</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><BR>&nbsp;&nbsp;vtkCamera* camera = 
GetRenderer()-&gt;GetActiveCamera();<BR>&nbsp;&nbsp;camera-&gt;SetFocalPoint(center);&nbsp;<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&nbsp; object A. 
  so the object A&nbsp;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>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>