Look at:<br><a href="http://www.vtk.org/doc/nightly/html/classvtkDataObjectToDataSetFilter.html">http://www.vtk.org/doc/nightly/html/classvtkDataObjectToDataSetFilter.html</a><br><br>The documentation describes the API for specifying which arrays to use for points/cells etc.<br>
<br>Utkarsh<br><br><div class="gmail_quote">On Mon, May 25, 2009 at 5:17 AM, Natalie Happenhofer <span dir="ltr">&lt;<a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
Hi!<br>I´m trying to use the vtkDataSetObjectToDataSetFilter, but it doesn´t really work, this is my code:<br><br>  vtkSmartPointer&lt;vtkDataObject&gt; inputCopy;<br>  inputCopy.TakeReference(input-&gt;NewInstance());<br>
  inputCopy-&gt;ShallowCopy(input);<br><br>  vtkDataObjectToDataSetFilter* DoToDS = vtkDataObjectToDataSetFilter::New();<br>  DoToDS -&gt; SetInput(inputCopy);<br>  vtkDataSet* ds = DoToDS -&gt; GetOutput();<br> <br>  DoToDS -&gt; Update();<br>
<br>Compiling is ok, executing I get the following error:<br><br>ERROR: In .../ParaView-3.4.0/VTK/Graphics/vtkDataObjectToDataSetFilter.cxx, line 291<br>vtkDataObjectToDataSetFilter (0x1377fd00): Couldn&#39;t create any points<br>
<br><br>ERROR: In ../ParaView-3.4.0/VTK/Graphics/vtkDataObjectToDataSetFilter.cxx, line 560<br>vtkDataObjectToDataSetFilter (0x13787b30): Can&#39;t find array requested<br><br>It seems I need to specify more, but what? and how?<br>
<br>thx for help,<br>Natalie<br><br><br><br><br><br><hr>¡Es hora que descubras quién eres! <a href="http://www.descubrewindowslive.com/" target="_blank">Alguien puede conocerte mejor que tu mismo.</a></div>
<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>