<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<p>vtkUnstructuredGrid::ShallowCopy fails to copy through anything but
points if the vtkDataObject that you pass through doesn't downcast safely
to a vtkUnstructuredGrid.&nbsp; That means that "this->GetInput()" must
either be a vtkUnstructuredGrid, or a subclass of vtkUnstructuredGrid.&nbsp;
Currently, there is no sublcass of vtkUnstructuredGrid unless you wrote
one, so my guess is that whatever you're passing ShallowCopy is not a vtkUnstructuredGrid.
<br>-Jeff
<p>johnny carroll norris wrote:
<blockquote TYPE=CITE>Hello,
<p>vtkUnstructuredGrid::ShallowCopy() fails to pass through the cell information.
<br>If you use
<p>&nbsp;&nbsp; this->GetOutput()->ShallowCopy(this->GetInput());
<p>in a custom filter derived from vtkUnstructuredGridToUnstructuredGridFilter,
<br>the output will have the points and point data, but no cells.
<p>John
<br>--
<br>John Norris
<br>Research Programmer
<br>Center for Simulation of Advanced Rockets
<br><a href="http://www.uiuc.edu/ph/www/jnorris">http://www.uiuc.edu/ph/www/jnorris</a>
<p>_______________________________________________
<br>This is the private VTK discussion list.
<br>Please keep messages on-topic. Check the FAQ at: &lt;<a href="http://public.kitware.com/cgi-bin/vtkfaq">http://public.kitware.com/cgi-bin/vtkfaq</a>>
<br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a></blockquote>

<pre>--&nbsp;
J.A. Lee</pre>
&nbsp;</html>