<!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> </DIV>
<DIV><FONT face=Arial size=2> 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 before and after mesh deformation.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 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> </DIV>
<DIV><FONT face=Arial size=2> Some code patches are listed below.
Any one could help me?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2> **************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2>// Create a double array which represents new
points.<BR> vtkDoubleArray* ptcoords =
vtkDoubleArray::New();<BR> // Create
vtkPoints and assign pcoords as the internal data
array.<BR> vtkPoints* points =
vtkPoints::New();<BR>
points->SetNumberOfPoints(numPoints); </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> normals->Update(); //vtk demand
driven language</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> </FONT><FONT face=Arial
size=2> for (int i = 0; i < numPoints;
i++)<BR> {<BR> This part for getting new position
of each vertice is just omitted </FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>//Set the newly obtained position to
Tuple<BR>ptcoords->SetTuple(i,vertexNew); <BR>points->SetData(ptcoords);<BR>//
Assign points and cells<BR>polyNew->SetPoints(points);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vertexNew contains all the new positions of
vertex. The accessible problem occurs on running
ptcoords->SetTuple(i,vertexNew); </FONT></DIV>
<DIV><FONT face=Arial
size=2>**************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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
& Image Processing (CVIP) Lab<BR>Department of Electrical & 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>
+1-502-852-6130
(Office)<BR>-----------------------------------------------------------------</FONT></DIV></BODY></HTML>