Hi all,<br><br>This is hopefully a silly question, but how do I &quot;push though&quot; changes made on a vtkPolyData object?<br><br>In context, I have a pipeline set up with a vtkPolyData object attached to a mapper which renders to a QVtkWidget.<br>
<br>I want to update the contents of that object like so...<br>vtkPolyData * dataSet = the_pipeline_instance;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataSet-&gt;Reset();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataSet-&gt;SetPoints(points.get());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataSet-&gt;SetVerts(verts.get());<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataSet-&gt;GetPointData()-&gt;AddArray(sizes.get());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataSet-&gt;GetPointData()-&gt;AddArray(colours.get());<br><br>where points, verts, sizes, colours are all set up prior.<br><br>Then I tried to do<br>dataSet-&gt;Modified();<br>
and even<br>dataSet-&gt;Update();<br><br>but the rendered image did not change... until i rotated the model.<br><br>Do I have to call Update() on the renderer, or the mapper, or the QVtkWidget ?&nbsp; Doesn&#39;t Modified() notify the filters upstream that something has changed ?<br>
<br><br>and a secondary question, I am using Reset() above, but it mentions that it does not free memory...<br>Is there another way I should be replacing the contents of my data object ?<br><br>thanks,<br>Paul<br><br>