<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=755321803-26032004>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=755321803-26032004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=755321803-26032004>I have solved this 
problem by calling vtkPoints-&gt;Modified() before computing bounds. But I 
wonder if this should be done by the objects implicitly?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=755321803-26032004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=755321803-26032004>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=755321803-26032004>Pingkun</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  vtkusers-admin@vtk.org [mailto:vtkusers-admin@vtk.org] <B>On Behalf Of </B>Yan 
  Pingkun<BR><B>Sent:</B> Friday, March 26, 2004 12:43 AM<BR><B>To:</B> 
  vtkusers@vtk.org<BR><B>Subject:</B> [vtkusers] 
  vtkPoints-&gt;ComputeBounds<BR><BR></FONT></DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial size=2>Hi 
  all,</FONT></SPAN></DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial size=2>I'm&nbsp;trying to 
  modify&nbsp;vtkPolyData by getting vtkPoints and the point values are changed 
  successfully. But the problem is that I want to can't update the bounds. I 
  called vtkPoints-&gt;ComputeBounds(), but it doesn't work. I traced into the 
  source code and found the condition</FONT></SPAN></DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial 
  size=2>=======================</FONT></SPAN></DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial size=2>if ( 
  this-&gt;GetMTime() &gt; this-&gt;ComputeTime )</FONT></SPAN></DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial 
  size=2>=======================</FONT></SPAN></DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial size=2>is always false. 
  Hence, the bounds can't be updated.</FONT></SPAN></DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial size=2>Anybody can 
  help?</FONT></SPAN></DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial 
  size=2>Thanks!</FONT></SPAN></DIV>
  <DIV><SPAN class=840283816-25032004></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial 
  size=2>Regards,</FONT></SPAN></DIV>
  <DIV><SPAN class=840283816-25032004><FONT face=Arial 
  size=2>Pingkun</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>