<div dir="ltr">Try that<div><br></div><div>vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData();<br>polyDataCreateCells.SetInputData(polyData);<br>polyDataCreateCells.PassPointDataOn();<br>polyDataCreateCells.Update();  // <==== For the execution of the filter</div><div><br>// Create new polyData, retrieve completed polyData from polyDataCreateCells<br>vtkPolyData polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); // No need to create a polydata just get a ref from the filter<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 21, 2015 at 8:20 AM, James Labiak <span dir="ltr"><<a href="mailto:jim@jslengineeringsoftware.com" target="_blank">jim@jslengineeringsoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font size="-1">Hello all,<br>
      I created a pipeline that seems to make sense to me, but always my
      polyDataComplete is empty. Any ideas why this code doesn't work?
      The only vtkPointToCellData example on the web that I can find
      uses blow.vtk, which doesn't exist on my 6.0.0 installation
      anywhere. The polyData variable gets correctly populated with the
      points and their scalars below.<br>
      <br>
              // Create a new, empty polyData<br>
              polyData = new vtkPolyData();<br>
                      <br>
              // populate the polyData points<br>
              polyData.SetPoints(points);<br>
      <br>
              // populate the polyData scalars<br>
              polyData.GetPointData().SetScalars(colorsScalars);<br>
      <br>
              vtkPointDataToCellData polyDataCreateCells = new
      vtkPointDataToCellData();<br>
              polyDataCreateCells.SetInputData(polyData);<br>
              polyDataCreateCells.PassPointDataOn();<br>
      <br>
              // Create new polyData, retrieve completed polyData from
      polyDataCreateCells<br>
              vtkPolyData polyDataComplete = new vtkPolyData();<br>
              polyDataComplete =
      polyDataCreateCells.GetPolyDataOutput();<br>
      <br>
              vtkPolyDataMapper polyMapper = new vtkPolyDataMapper();<br>
              polyMapper.SetInputData(polyDataComplete);<br>
              polyMapper.ScalarVisibilityOn();<br>
              polyMapper.SetScalarRange(scalarMin, scalarMax);<br>
              polyMapper.Update();<br>
              <br>
              vtkActor polyActor = new vtkActor();<br>
              polyActor.SetMapper(polyMapper);<br>
              polyActor.GetProperty().SetColor(1.0, 1.0, 1.0);<br>
      <br>
      // ...Usual render stuff...<br>
      <br>
      Thanks,<br>
      Jim</font><br>
  </div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>