<pre style="margin-top:0px;margin-bottom:0px">On Wed, Nov 21, 2012 at 11:40 AM, web-Dmitri web-Danewitz <span dir="ltr">&lt;<a href="mailto:d.danewitz@web.de" target="_blank">d.danewitz@web.de</a>&gt;</span> wrote:</pre><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>Thank you David,<br></div><div><br></div><div>It still does not work for me. I made a very small example, explaining my problem. <br>
<br>What I expect to see when I shine on the surface is for it to look something like this:<br><a href="http://i.imgur.com/DpH6m.jpg" target="_blank">http://i.imgur.com/DpH6m.jpg</a><br><br>Instead it looks like this:<br>
<a href="http://i.imgur.com/Wz4ga.jpg" target="_blank">http://i.imgur.com/Wz4ga.jpg</a><br><br>But when I just make the surface to be shined on smaller (-5, 5, -5, 5, -5, 5) instead of (-500, 500, -500, 500, -5, 5) it look like this:<br>
<a href="http://i.imgur.com/Je5BD.jpg" target="_blank">http://i.imgur.com/Je5BD.jpg</a><br><br>Is there a away to make it look like picture 1?<br><br>Here&#39;s the short code used for this example:</div></div></div></blockquote>
<div><br></div><div>I can&#39;t get this to work either. I have simplified the example by creating a plane on which to shine the light. I have placed a sphere at the point that the light is supposed to be focused on. I have used a vtkLightActor to verify that the light is pointing where we expect. The scene looks correct without this line:</div>
<div><br></div>
<div>renderer-&gt;AddLight(light);</div><div><br></div><div>but as soon as I add that light, the plane disappears entirely (is black?) when viewed from any direction, and the sphere is only visible when viewed from the direction of the light. </div>
<div><br></div><div>Can anyone explain what we are doing wrong here?</div><div><br></div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkLightCollection.h&gt;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkProperty.h&gt;</span></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkRenderer.h&gt;</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkRenderWindow.h&gt;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkPlaneSource.h&gt;</span></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkSphereSource.h&gt;</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkPolyDataMapper.h&gt;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkActor.h&gt;</span></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkLight.h&gt;</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkLightActor.h&gt;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkSmartPointer.h&gt;</span></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&lt;vtkRenderWindowInteractor.h&gt;</span></pre><pre style="margin-top:0px;margin-bottom:0px"><br>
</pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span>main()</pre><pre style="margin-top:0px;margin-bottom:0px">{</pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkRenderer</span>&gt;<span style="color:rgb(192,192,192)"> </span>renderer<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkRenderer</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">double</span><span style="color:rgb(192,192,192)"> </span>lightPosition[<span style="color:rgb(0,0,128)">3</span>]<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span>{<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">1</span>};</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Create</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">a</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">light</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">double</span><span style="color:rgb(192,192,192)"> </span>lightFocalPoint[<span style="color:rgb(0,0,128)">3</span>]<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span>{<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">0</span>};</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkLight</span>&gt;<span style="color:rgb(192,192,192)"> </span>light<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkLight</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>light-&gt;SetLightTypeToSceneLight();</pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>light-&gt;SetPosition(lightPosition[<span style="color:rgb(0,0,128)">0</span>],<span style="color:rgb(192,192,192)"> </span>lightPosition[<span style="color:rgb(0,0,128)">1</span>],<span style="color:rgb(192,192,192)"> </span>lightPosition[<span style="color:rgb(0,0,128)">2</span>]);</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>light-&gt;SetPositional(<span style="color:rgb(128,128,0)">true</span>);<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">required</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">for</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">vtkLightActor</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">below</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>light-&gt;SetFocalPoint(lightFocalPoint[<span style="color:rgb(0,0,128)">0</span>],<span style="color:rgb(192,192,192)"> </span>lightFocalPoint[<span style="color:rgb(0,0,128)">1</span>],<span style="color:rgb(192,192,192)"> </span>lightFocalPoint[<span style="color:rgb(0,0,128)">2</span>]);</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>light-&gt;SetDiffuseColor(<span style="color:rgb(0,0,128)">1</span>,<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">0</span>);</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>light-&gt;SetAmbientColor(<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">1</span>,<span style="color:rgb(0,0,128)">0</span>);</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>light-&gt;SetSpecularColor(<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">1</span>);</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkLightCollection</span>*<span style="color:rgb(192,192,192)"> </span>originalLights<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span>renderer-&gt;GetLights();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">std</span>::cout<span style="color:rgb(192,192,192)"> </span>&lt;&lt;<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&quot;Originally</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">there</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">are</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&quot;</span><span style="color:rgb(192,192,192)"> </span>&lt;&lt;<span style="color:rgb(192,192,192)"> </span>originalLights-&gt;GetNumberOfItems()<span style="color:rgb(192,192,192)"> </span>&lt;&lt;<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&quot;</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">lights.&quot;</span><span style="color:rgb(192,192,192)"> </span>&lt;&lt;<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span>::endl;</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>renderer-&gt;AddLight(light);<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">commenting</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">this</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">line</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">shows</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">plane</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">in</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">normal</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">light</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">std</span>::cout<span style="color:rgb(192,192,192)"> </span>&lt;&lt;<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&quot;Now</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">there</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">are</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&quot;</span><span style="color:rgb(192,192,192)"> </span>&lt;&lt;<span style="color:rgb(192,192,192)"> </span>originalLights-&gt;GetNumberOfItems()<span style="color:rgb(192,192,192)"> </span>&lt;&lt;<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&quot;</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">lights.&quot;</span><span style="color:rgb(192,192,192)"> </span>&lt;&lt;<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span>::endl;</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Display</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">where</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">light</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkLightActor</span>&gt;<span style="color:rgb(192,192,192)"> </span>lightActor<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkLightActor</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>lightActor-&gt;SetLight(light);</pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>renderer-&gt;AddViewProp(lightActor);</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Display</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">where</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">light</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">focused</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkSphereSource</span>&gt;<span style="color:rgb(192,192,192)"> </span>lightFocalPointSphere<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkSphereSource</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>lightFocalPointSphere-&gt;SetCenter(lightFocalPoint);</pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>lightFocalPointSphere-&gt;SetRadius(<span style="color:rgb(0,0,128)">.1</span>);</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>lightFocalPointSphere-&gt;Update();</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkPolyDataMapper</span>&gt;<span style="color:rgb(192,192,192)"> </span>lightFocalPointMapper<span style="color:rgb(192,192,192)"> </span>=</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">      </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkPolyDataMapper</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>lightFocalPointMapper-&gt;SetInputConnection(lightFocalPointSphere-&gt;GetOutputPort());</pre><pre style="margin-top:0px;margin-bottom:0px">
<br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkActor</span>&gt;<span style="color:rgb(192,192,192)"> </span>lightFocalPointActor<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkActor</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>lightFocalPointActor-&gt;SetMapper(lightFocalPointMapper);</pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>lightFocalPointActor-&gt;GetProperty()-&gt;SetColor(<span style="color:rgb(0,0,128)">1.0</span>,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">0.0</span>,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">0.0</span>);<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//(R,G,B)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>renderer-&gt;AddViewProp(lightFocalPointActor);</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Create</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">a</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">cube</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">for</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">light</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">shine</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">on</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkPlaneSource</span>&gt;<span style="color:rgb(192,192,192)"> </span>plane<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkPlaneSource</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>plane-&gt;Update();</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkPolyDataMapper</span>&gt;<span style="color:rgb(192,192,192)"> </span>planeMapper<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkPolyDataMapper</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>planeMapper-&gt;SetInputData(plane-&gt;GetOutput());</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkActor</span>&gt;<span style="color:rgb(192,192,192)"> </span>planeActor<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkActor</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>planeActor-&gt;SetMapper(planeMapper);</pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>renderer-&gt;AddActor(planeActor);</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkRenderWindow</span>&gt;<span style="color:rgb(192,192,192)"> </span>renderWindow<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkRenderWindow</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>renderWindow-&gt;AddRenderer(renderer);</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkRenderWindowInteractor</span>&gt;<span style="color:rgb(192,192,192)"> </span>renderWindowInteractor<span style="color:rgb(192,192,192)"> </span>=</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">      </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span>&lt;<span style="color:rgb(128,0,128)">vtkRenderWindowInteractor</span>&gt;::New();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>renderWindowInteractor-&gt;SetRenderWindow(renderWindow);</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(192,192,192)">  </span>renderWindow-&gt;Render();</pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>renderWindowInteractor-&gt;Start();</pre><pre style="margin-top:0px;margin-bottom:0px">
<br></pre><pre style="margin-top:0px;margin-bottom:0px">}</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><br><div>David </div></div>