<div>Hello all,</div><div><br></div><div>I am using c# wrapper of VTK. Everything works fine except the following code snippet (it is not so different from c++). It only shows a black cube on the renderer window when run (Tried the similar code for STL files. it works good.):          </div>
<div><br></div><div><br></div><div><b>           </b> vtkRenderer renderer = renderWindowControl1.RenderWindow.GetRenderers().GetFirstRenderer();</div><div><b><br></b></div><div><b>           </b> // --- Get the VTK file ---</div>
<div><b>            vtkStructuredPointsReader reader = vtkStructuredPointsReader.New();</b></div><div><b>            vtkDataSetMapper mapper = vtkDataSetMapper.New();</b></div><div><b>            vtkActor actor = vtkActor.New();</b></div>
<div><b>            </b></div><div><b>            reader.SetFileName(&quot;..\\Multispec_cluster20.vtk&quot;);</b></div><div><b>            reader.Update();</b><b>           </b></div><div><b>            mapper.SetInputConnection(reader.GetOutputPort());</b></div>
<div><b><br></b></div><div><b>          </b>  <b>actor.SetMapper(mapper);</b></div><div><b>            renderer.AddActor(actor);</b></div><div><br></div><div>Is there anyone who used vtkStructuredPointsReader. Do I miss something? Probably using the wrong mapper??</div>
<div><br></div><div>Thanks in advance,</div>-- <br><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><p style="font-size:13px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="color:black">Erol </span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:12px"><br></span></p></span><br>