<div dir="ltr">Hello !<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>vtkPoints* l_pts = vtkPoints::New();<br><br>&nbsp;&nbsp;&nbsp; l_pts-&gt;InsertPoint(0,0.0,0.0,-1.0);<br>&nbsp;&nbsp;&nbsp; l_pts-&gt;InsertPoint(1,0.0,0.0,-1.0);<br>&nbsp;&nbsp;&nbsp; l_pts-&gt;InsertPoint(2,0.0,0.0,-1.0);<br>&nbsp;&nbsp;&nbsp; l_pts-&gt;InsertPoint(3,0.0,0.0,-1.0);<br>
<br>&nbsp;&nbsp;&nbsp; vtkCellArray* l_cells = vtkCellArray::New();<br><br>&nbsp;&nbsp;&nbsp; l_cells-&gt;InsertNextCell(4); <br>&nbsp;&nbsp;&nbsp; l_cells-&gt;InsertCellPoint(0);<br>&nbsp;&nbsp;&nbsp; l_cells-&gt;InsertCellPoint(1);<br>&nbsp;&nbsp;&nbsp; l_cells-&gt;InsertCellPoint(2);<br>&nbsp;&nbsp;&nbsp; l_cells-&gt;InsertCellPoint(3);<br>
<br>&nbsp;&nbsp;&nbsp; m_polydata-&gt;SetPoints(l_pts);<br>&nbsp;&nbsp;&nbsp; m_polydata-&gt;SetPolys(l_cells);<br><br>&nbsp;&nbsp;&nbsp; CDataSpace* l_space&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = l_prop-&gt;GetBox().get();<br>&nbsp;&nbsp;&nbsp; m_polydata-&gt;GetPoints()-&gt;SetPoint(0,l_space-&gt;x_min,l_space-&gt;y_min,-1.0);<br>
&nbsp;&nbsp;&nbsp; m_polydata-&gt;GetPoints()-&gt;SetPoint(1,l_space-&gt;x_min,l_space-&gt;y_max,-1.0);<br>&nbsp;&nbsp;&nbsp; m_polydata-&gt;GetPoints()-&gt;SetPoint(2,l_space-&gt;x_max,l_space-&gt;y_max,-1.0);<br>&nbsp;&nbsp;&nbsp; m_polydata-&gt;GetPoints()-&gt;SetPoint(3,l_space-&gt;x_max,l_space-&gt;y_min,-1.0);<br>
&nbsp;&nbsp;&nbsp; m_polydata-&gt;Update();<br>&nbsp;&nbsp;&nbsp; m_mapper-&gt;Update();<br><br><br><br></div>