<!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.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi, Meisam: </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; Thanks for your replying. 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;Actually, since I need 
to&nbsp;update all the&nbsp;new vertex positions based on their previous ones 
and&nbsp;some curvature flow criteria, during each iteration, I keep the 
previous polydate dataset structure, (say vtkPolypData 
*poly=vtkPolyData::New()), and assign the new vertex position to a newly 
generated polydata dataset polyNew. Finally during each iteration, I regenerate 
all the normals of polyNew, then&nbsp;I delete the poly and polyNew. Starting 
from a new interation, I transfer the normals to the poly which is generated 
again.&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;</FONT><FONT face=Arial size=2>To be 
simple, let me summarize what I did:</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;1) create poly and polyNew;&nbsp; poly takes 
the input dataset, while polyNew is designed to take the updated vertex 
positions during each iteration. </FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I am also thinking a question: 
how to keep the exact structures of poly and polyNew?</FONT></DIV>
<DIV><FONT face=Arial size=2>2). Based on its old position and curature flow 
criteria, I iteratively change the vertice position. </FONT></DIV>
<DIV><FONT face=Arial size=2>3). At the end of each iteration, I generate all 
the new normals of polyNew, which will be transfered to the poly generated in 
next iteration.</FONT></DIV>
<DIV><FONT face=Arial size=2>4). keep doing until all iterations are 
finished.</FONT></DIV>
<DIV><FONT face=Arial size=2>5). delete poly or polyNew during each iteration or 
after all the iterations, which really depends on where I create them, during 
each&nbsp;iteration or before all the iterations?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;Hope&nbsp;it is more clear this time. 
Otherwise, I will post some patches of my code.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</FONT></DIV>
<DIV>Best 
Wishes,<BR>-----------------------------------------------------------------<BR>Dongqing 
Chen<BR>Ph.D Candidate<BR>Rm. 07, Paul C. Lutz Hall<BR>Computer Vision &amp; 
Image Processing (CVIP) Lab<BR>Department of Electrical &amp; Computer 
Engineering<BR>Speed School of Engineering<BR>University of 
Louisville<BR>Louisville, KY. 40292<BR>U.S.A<BR>Email: <A 
href="mailto:dqchen@cvip.louisville.edu">dqchen@cvip.louisville.edu</A><BR>Phone:+1-502-852-2789 
(Lab)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
+1-502-852-6130 
(Office)<BR>-----------------------------------------------------------------</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=meisam.aliroteh@gmail.com 
  href="mailto:meisam.aliroteh@gmail.com">Meisam Aliroteh</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=dqchen@cairo.spd.louisville.edu 
  href="mailto:dqchen@cairo.spd.louisville.edu">Dongqing Chen</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=vtkusers@vtk.org 
  href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, August 12, 2007 8:07 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] iteratively 
  update the vertices positions.</DIV>
  <DIV><BR></DIV>
  <DIV>Hi Dongqing,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I have implemented programs where I update position of vertices in a 
  for-loop and it never crashed. Basically the Delete() method will not crash 
  just because you iteratively change vertex positions. If your program crashes, 
  it is because of something else. From your explanation it is not clear what is 
  the cause of the problem. Maybe you can give more details!? Also including 
  parts of your code that is causing the problem can be very helpful. 
</DIV></BLOCKQUOTE></BODY></HTML>