<!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; I just want to visulize a new dataset. 
The new dataset only contains the new positions of some mesh vertices, and 
others (most of the vertices) will keep their positions unchanged. I knew 
exactly all the new positions.&nbsp;I just want to&nbsp;associate &nbsp;the new 
position with the original point ID, then visualize the new 
dataset.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>/*************************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; vtkPolyData 
*poly=normals-&gt;GetOutput(); //original dataset </FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;vtkPolyData 
*polyNew=vtkPolyData::New(); //new&nbsp;dataset after each 
iteration</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>&nbsp; // Create vtkPoints&nbsp;<BR>&nbsp; 
vtkPoints* points = vtkPoints::New();<BR>&nbsp; 
points-&gt;SetNumberOfPoints(numPoints);&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; //Create Stripe to define 
topology<BR>&nbsp;&nbsp;vtkCellArray 
*strips=vtkCellArray::New();<BR>&nbsp;&nbsp;strips-&gt;InsertNextCell(numPoints);&nbsp; 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>if (maxCurvature[i]&lt;-0.10 &amp;&amp; 
shapeIndex[i]&gt;=SILowLimit &amp;&amp; 
shapeIndex[i]&lt;=SIUpLimit<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp; 
sphericity[i]&lt;=spLimit)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Get 
the new positon and save in 
vertexNew,&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; </FONT><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;points-&gt;InsertPoint(i,vertexNew);&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
trips-&gt;InsertCellPoint(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Assign 
points and 
cells<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;polyNew-&gt;SetPoints(points);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
polyNew-&gt;SetPolys(strips);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;}//end of if 
(minCurvature[i]&gt;0.0)<BR>&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;//Get 
the vertex<BR>&nbsp;&nbsp;&nbsp;&nbsp;double vertex[3]; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;poly-&gt;GetPoint(i,vertex);<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR></FONT><FONT 
face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;points-&gt;InsertPoint(i,vertex);<BR>&nbsp;&nbsp;&nbsp;&nbsp;strips-&gt;InsertCellPoint(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;// 
Assign points and 
cells<BR>&nbsp;&nbsp;&nbsp;&nbsp;polyNew-&gt;SetPoints(points);<BR>&nbsp;&nbsp;&nbsp;&nbsp;polyNew-&gt;SetStrips(strips);&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;}</FONT></DIV>
<DIV><FONT face=Arial size=2>&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>The problem is that I could not visualize polyNew 
as a polydata which I use for poly successfully.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I think it should be caused by the non-proper 
polydata structure of polyNew;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Please help me to figure out the 
problem.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>