<!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.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear All:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I am doing some research on 
PDE-based curve or surface envoving. I want to visualize the position change of 
each vertice on the mesh surface&nbsp;before and after mesh deformation. 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; I have all the new positions of all 
the vertex after each iteration. And the program was complied very well, but 
some acceesible problems were generated. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; Some code patches are listed below. 
Any one could help me?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;**************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2>// Create a double array which represents new 
points.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkDoubleArray* ptcoords = 
vtkDoubleArray::New();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Create 
vtkPoints and assign pcoords as the internal data 
array.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkPoints* points = 
vtkPoints::New();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
points-&gt;SetNumberOfPoints(numPoints); </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;normals-&gt;Update(); //vtk demand 
driven language</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;</FONT><FONT face=Arial 
size=2>&nbsp;for (int i = 0; i &lt; numPoints; 
i++)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp; This part for getting new position 
of each vertice is just omitted </FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>//Set the newly obtained position to 
Tuple<BR>ptcoords-&gt;SetTuple(i,vertexNew);&nbsp;<BR>points-&gt;SetData(ptcoords);<BR>// 
Assign points and cells<BR>polyNew-&gt;SetPoints(points);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>vertexNew contains all the new positions&nbsp;of 
vertex. The accessible problem occurs on running 
ptcoords-&gt;SetTuple(i,vertexNew);&nbsp;</FONT></DIV>
<DIV><FONT face=Arial 
size=2>**************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Best 
Wishes,<BR>-----------------------------------------------------------------<BR>Dongqing 
Chen<BR>Ph.D Research Assistant<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>-----------------------------------------------------------------</FONT></DIV></BODY></HTML>