<br><br>On Friday, September 14, 2012, Nickabilla  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello guys!<br>
<br>
I am new to VTK and also to C++ and wanted to do visualisation of a point<br>
cloud. I have VTK set up in Visual Studio 2010 with all the project settings<br>
correct. At least i think i do because when i run this example:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Math/NormalizeVector" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Math/NormalizeVector</a> it all works<br>
fine. However when i try to visualize a cone:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Cone" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Cone</a> the program<br>
gives this exception:<br>
<br>
Unhandled exception at 0x004115ed in vtk_test.exe: 0xC0000005: Access<br>
violation reading location 0x00000000.<br>
<br>
The exception is on this line and refers to the &#39;mapper&#39; object:<br>
<br>
mapper-&gt;SetInputConnection(coneSource-&gt;GetOutputPort());</blockquote><div><br></div><div><br></div><div>This is because vtkRenderingOpenGL, the implementation of the vtkRenderingCore module, isn&#39;t linked.</div>
<div>Try using this find command in your cmakelists.txt.</div><div><br></div><span class="Apple-style-span" style="font-family:monospace;font-size:10px;line-height:normal"><pre class="de1" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-top-color:white;border-right-color:white;border-bottom-color:white;border-left-color:white;color:black;background-color:initial;line-height:normal;font:normal normal normal 1em/1.2em monospace;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;background-image:none;vertical-align:top;background-repeat:initial initial">
<span class="kw1" style="color:rgb(31,63,129)">find_package</span><span class="sy0" style="color:rgb(25,125,139)">(</span>VTK 6.0 REQUIRED NO_MODULE<span class="sy0" style="color:rgb(25,125,139)">)</span></pre></span><div>
 </div><div dir="ltr">See <a href="http://vtk.org/Wiki/VTK/Build_System_Migration">http://vtk.org/Wiki/VTK/Build_System_Migration</a> for an explanation of what the heck I&#39;m talking about.</div><div dir="ltr"><br></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I also tried it like this and it doesn&#39;t work either:<br>
<br>
mapper-&gt;SetInputConnection(0,coneSource-&gt;GetOutputPort(0));<br>
<br>
I am using VTK 6.0. Does anyone have a clue to what i am doing wrong or<br>
maybe the example is outdated?<br>
<br></blockquote><span class="Apple-style-span" style> </span><br><div><span class="Apple-style-span" style>Technically you aren&#39;t using 6.0, y</span><span class="Apple-style-span" style dir="ltr">ou are using the development head version which will become 6.0 once it stabilizes and we put it in a nice shiny box.</span></div>
<div><span class="Apple-style-span" style dir="ltr"><br></span><span></span></div><div><br><div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Many thanks in advance,<br>
<br>
Nick<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Problem-with-vtkPolyDataMapper-tp5716082.html" target="_blank">http://vtk.1045678.n5.nabble.com/Problem-with-vtkPolyDataMapper-tp5716082.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br>-- <br>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909<br>