<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>It turns out there is some subtle difference between</div>
vtkRenderer.Render() and vtkRenderWindow.Render()<br>
<br>
This example shows the behavior:<br>
<a href="http://pastebin.com/KPFpkCKU" target="_blank">http://pastebin.com/KPFpkCKU</a><br>
On my machine I see an unmodified image with &quot;renWin.Render()&quot; and a<br>
modified image with &quot;ren.Render()&quot;<br>
I had previously used renWin.Render() in all my vtk code, but I have<br>
always worked with polydata only.</blockquote><div><br></div><div>Quoting David Gobbi from an old mailing list post that I&#39;ve used ever since:</div><span style><div class="gmail_quote"><span style><br></span></div>&quot;You should never, ever call </span><span class="il" style>renderer</span><span style>-&gt;</span><span class="il" style>Render</span><span style>().  That method is only</span><br style>
<span style>meant to be called by the vtkRenderWindow.  The documentation says</span><br style><span style>so quite clearly.  By calling it you are probably causing some timestamps</span><br style><span style>to be set (indicating that all actors in the </span><span class="il" style>renderer</span><span style> have rendered), but you</span><br style>
<span style>aren&#39;t actually doing any rendering.  Then, when you call</span><br style><span style>renderWindow-&gt;</span><span class="il" style>Render</span><span style>() it sees that those timestamps have been updated</span><br style>
<span style>and thinks that there is nothing to be done.&quot;</span><br clear="all"></div><div class="gmail_quote"><span style><br></span></div><div class="gmail_quote"><span style>I&#39;m not sure why renderWindow-&gt;Render() is not working for you in this case. Any Python VTK experts out there?</span></div>