<!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.2900.3354" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Try m_mapper->Modified()</FONT></DIV>
<DIV><FONT face=Arial size=2>Vidyadhar</FONT></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=ptw.freiburg@googlemail.com
href="mailto:ptw.freiburg@googlemail.com">Oliver Kania</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, July 25, 2008 5:01 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] Why does a change to
underlying poly-data not effect thegraphical representation ? (ignore previous
messge !)</DIV>
<DIV><BR></DIV>
<DIV dir=ltr>Hello !<BR>Sorry for posting one more time, please ignore the
previous message:<BR><BR>I have a VTK question that has cost me time <BR>and a
lot of hair ;)<BR><BR>I am defining poly data, a mapper and an actor.<BR>Now,
when I change the underlying poly-Data, the graphical representation <BR>does
not change
:<BR><BR>----------------------------------------------------------------------<BR><BR>vtkPoints*
l_pts = vtkPoints::New();<BR><BR>
l_pts->InsertPoint(0,0.0,0.0,-1.0);<BR>
<DIV dir=ltr>
l_pts->InsertPoint(1,0.0,0.0,-1.0);<BR>
l_pts->InsertPoint(2,0.0,0.0,-1.0);<BR>
l_pts->InsertPoint(3,0.0,0.0,-1.0);<BR><BR> vtkCellArray*
l_cells = vtkCellArray::New();<BR><BR>
l_cells->InsertNextCell(4); <BR>
l_cells->InsertCellPoint(0);<BR>
l_cells->InsertCellPoint(1);<BR>
l_cells->InsertCellPoint(2);<BR>
l_cells->InsertCellPoint(3);<BR><BR>
m_polydata->SetPoints(l_pts);<BR>
m_polydata->SetPolys(l_cells);<BR><BR> CDataSpace*
l_space =
l_prop->GetBox().get();<BR>
m_polydata->GetPoints()->SetPoint(0,l_space->x_min,l_space->y_min,-1.0);<BR>
m_polydata->GetPoints()->SetPoint(1,l_space->x_min,l_space->y_max,-1.0);<BR>
m_polydata->GetPoints()->SetPoint(2,l_space->x_max,l_space->y_max,-1.0);<BR>
m_polydata->GetPoints()->SetPoint(3,l_space->x_max,l_space->y_min,-1.0);<BR><BR><BR>
m_polydata->Update();<BR>
m_mapper->Update();<BR><BR>----------------------------------------------------------------------<BR><BR>The
first time I am doing this works, but when i change the points using
<BR>getPoint()->setPoint(....) again, nothing happens.
<BR><BR>regards, Oliver<BR></DIV></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>This is the private
VTK discussion list.<BR>Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></BODY></HTML>