<!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 5.50.4916.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>I am basicaly creating a
vtkUnstructuredGrid, populated with cells of vtkLines and
a vtkPoints</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>pGrid->InsertNextCell( lineA->GetCellType(),
lineA->GetPointIds() );<BR> pGrid->InsertNextCell(
lineB->GetCellType(), lineB->GetPointIds() );<BR>
pGrid->InsertNextCell( lineC->GetCellType(), lineC->GetPointIds()
);<BR> pGrid->InsertNextCell( lineD->GetCellType(),
lineD->GetPointIds() );<BR> pGrid->InsertNextCell(
lineE->GetCellType(), lineE->GetPointIds() );<BR>
pGrid->InsertNextCell( lineF->GetCellType(), lineF->GetPointIds()
);<BR> pGrid->SetPoints(Points);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The points are set by using
InsertPoint()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I need to be able to later change the values in the
individual points, to shorten and lengthen the lines. Recreating the
actor, grid, mapper, etc, gets very time consuming, so i figured i could just go
back through the actor, mapper, grid, and vtkPoints to get each point by
using:<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>float * point_locs;</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2>for(int j = 0;j <
points->GetNumberOfPoints();j++)<BR>
{<BR> point_locs =
points->GetPoint(j);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2> point_locs[0]
*= <adjustment factor></FONT></DIV>
<DIV><FONT face=Arial size=2>
point_locs[1] *= <adjustment factor></FONT></DIV>
<DIV><FONT face=Arial size=2>
point_locs[2] *= <adjustment factor></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
points->SetPoint(j,point_locs[0],point_locs[1],point_locs[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>I am able to retrieve the points find with
GetPoint(), but SetPoint does not appear to be changing the values. Is
there any other way to do this without recreating the actor and all of its
components?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
Aaron Cois</FONT></DIV>
<DIV><FONT face=Arial size=2>
University of
Pittsburgh</DIV></FONT></FONT></DIV></BODY></HTML>