<div dir="ltr">hi<div><br></div><div>I&#39;m new with VTK and I&#39;m studing VTK rignt now using the VTK Visualization Toolkit 4th Edition book for that. I&#39;m running this simple example:</div><div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(195,132,5)">&lt;vtkConeSource.h&gt;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(195,132,5)">&lt;vtkPolyDataMapper.h&gt;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(195,132,5)">&lt;vtkActor.h&gt;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(195,132,5)">&lt;vtkRenderer.h&gt;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(195,132,5)">&lt;vtkRenderWindow.h&gt;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(195,132,5)">&lt;vtkCamera.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(0,85,175)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">main</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,85,175)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">argc</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,85,175)">char</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">*</span><span style="color:rgb(0,0,0)">argv</span><span style="color:rgb(0,0,0)">[])</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)">{</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)">vtkConeSource</span><span style="color:rgb(0,0,0)">*</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">coneSource</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkConeSource</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">New</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">coneSource</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">SetHeight</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">3.0</span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">coneSource</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">SetRadius</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">1.0</span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">coneSource</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">SetResolution</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">10</span><span style="color:rgb(0,0,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)">vtkPolyDataMapper</span><span style="color:rgb(0,0,0)">*</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">coneMapper</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkPolyDataMapper</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">New</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">coneMapper</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">SetInputConnection</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">coneSource</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="color:rgb(0,0,0)">GetOutputPort</span><span style="color:rgb(0,0,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)">vtkActor</span><span style="color:rgb(0,0,0)">*</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">coneActor</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkActor</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">New</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">coneActor</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">SetMapper</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">coneMapper</span><span style="color:rgb(0,0,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)">vtkRenderer</span><span style="color:rgb(0,0,0)">*</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">render</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkRenderer</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">New</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">render</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="color:rgb(0,0,0)">AddActor</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">coneActor</span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">render</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">SetBackground</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">1</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,128)">1</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,128)">1</span><span style="color:rgb(0,0,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)">vtkRenderWindow</span><span style="color:rgb(0,0,0)">*</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">renderWindow</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkRenderWindow</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">New</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">renderWindow</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">AddRenderer</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">render</span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">renderWindow</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">SetSize</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">400</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,128)">400</span><span style="color:rgb(0,0,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(0,85,175)">for</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,85,175)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">i</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">0</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">i</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">&lt;</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">360</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">i</span><span style="color:rgb(0,0,0)">++)</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">render</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">Render</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">render</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="color:rgb(0,0,0)">GetActiveCamera</span><span style="color:rgb(0,0,0)">()-&gt;</span><span style="color:rgb(0,0,0)">Azimuth</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">1</span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,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(0,0,0)">coneSource</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">Delete</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">coneMapper</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">Delete</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">coneActor</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">Delete</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">render</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">Delete</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">renderWindow</span><span style="color:rgb(0,0,0)">-&gt;</span><span style="font-style:italic;color:rgb(0,0,0)">Delete</span><span style="color:rgb(0,0,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(0,85,175)">return</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">0</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)">}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">and I have the followin error:</pre><pre style="margin-top:0px;margin-bottom:0px"><p style="margin:0px"><span style="font-family:monospace;font-size:8pt;color:rgb(170,0,0)">Generic Warning: In /home/freddy/installs/libs/version-control/vtk-git/VTK/Rendering/Core/vtkPolyDataMapper.cxx, line 27</span></p>

<p style="margin:0px"><span style="font-family:monospace;font-size:8pt;color:rgb(170,0,0)">Error: no override found for &#39;vtkPolyDataMapper&#39;.</span></p>
<p style="margin:0px"><span style="font-family:monospace;font-size:8pt;font-weight:600;color:rgb(170,0,0)">The program has unexpectedly finished.</span></p><p style="margin:0px"><span style="font-family:monospace;font-size:8pt;font-weight:600;color:rgb(170,0,0)"><br>
</span></p><pre style="margin-top:0px;margin-bottom:0px">someone know about it ??</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">best regard</pre><pre style="margin-top:0px;margin-bottom:0px">
<br></pre><pre style="margin-top:0px;margin-bottom:0px">freddy</pre></pre><div><div dir="ltr"><div><b><font size="1"><span style="color:rgb(12,52,61)"><span style="background-color:rgb(153,0,0)"><span style="background-color:rgb(255,255,255)"><span><span style="color:rgb(102,102,102)"><br>
</span></span></span></span></span></font></b></div><div><b><font size="1"><span style="color:rgb(12,52,61)"><span style="background-color:rgb(153,0,0)"><span style="background-color:rgb(255,255,255)"><span><span style="color:rgb(102,102,102)">=============================================</span><br>
</span></span><span style="color:rgb(68,68,68)"><span style="background-color:rgb(243,243,243)">&quot;El tamaņo de tus logros depende del tamaņo de tus metas.&quot; </span></span></span></span><br><br><img src="http://eulersys.com/mails/Firma_Mail_Freddy.jpg"><br>
<br></font></b></div></div></div>
</div></div>