You probably need to run vtkCleanPolyData on the output of the reader. I think the STL reader creates triangles that each have their own sets of points.<br><br><div class="gmail_quote">On Tue, Aug 9, 2011 at 12:13 AM, louis10th <span dir="ltr">&lt;<a href="mailto:doyoungchang@gmail.com">doyoungchang@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">The program compiles with no error :)<br>
But when I execute the exe it crashes.<br>
<br>
I did try the following and the file looks reasonable.<br>
I will also try Paraview.<br>
<br>
Thanks!<br>
<div class="im"><br>
--------------------<br>
<br>
        vtkSTLReader *volumeReader = vtkSTLReader::New();<br>
                volumeReader-&gt;SetFileName(&quot;test.stl&quot;);<br>
<br>
</div>        vtkPolyDataMapper *stlMapper=vtkPolyDataMapper::New();<br>
        stlMapper-&gt;SetInputConnection (volumeReader-&gt;GetOutputPort());<br>
<br>
        vtkLODActor *stlActor=vtkLODActor::New();<br>
        stlActor-&gt;SetMapper(stlMapper);<br>
<br>
        renderer-&gt;AddActor( stlActor );<br>
<br>
        volumeReader-&gt; Delete(); stlMapper-&gt;Delete(); stlActor-&gt;Delete();<br>
<br>
        renWin-&gt;Render();<br>
        renWinInteractor-&gt;Start();<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Using-Boolean-Operations-on-Surfaces-on-arbitrary-mesh-stl-files-tp4680076p4680676.html" target="_blank">http://vtk.1045678.n5.nabble.com/Using-Boolean-Operations-on-Surfaces-on-arbitrary-mesh-stl-files-tp4680076p4680676.html</a><br>

</font><div class="im">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">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>
</div></div></blockquote></div><br>