<div class="gmail_quote">On Mon, Jan 2, 2012 at 6:03 PM, Ali Habib <span dir="ltr">&lt;<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I read STL I want to display it as mesh, not as 3D <div><br></div><div>I use the following code </div><div><br></div><div><div>            string filename = @&quot;c:\Soft_Tissue.stl&quot;;</div><div>            vtkSTLReader reader = new vtkSTLReader();</div>

<div>            reader.SetFileName(filename);</div><div>            vtk.vtkPolyDataMapper coneMapper = new vtk.vtkPolyDataMapper();</div><div>            coneMapper.SetInput(reader.GetOutput());</div><div>            vtk.vtkActor coneActor = new vtk.vtkActor();</div>

<div>            coneActor.SetMapper(coneMapper);</div><div>            vtk.vtkRenderer ren1 = new vtk.vtkRenderer();</div><div>            ren1.AddActor(coneActor);</div><div>            ren1.SetBackground(0.0f, 0.0f, 0.0f); renWin.AddRenderer(ren1);</div>

</div><div><br></div><div>any idea how to solve that </div><div><br></div><div>Best regards </div></div></blockquote><div><br></div><div>I think you&#39;re looking for this? </div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Wireframe">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Wireframe</a><br clear="all">
<br><div>David </div></div>