<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Or, if you were looking for a VTK filter which will just pass your data through, allowing you to pass your data to another filter with a call to GetOutputPort(), then it looks like you can use vtkPassThrough:<div><br></div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkPassThrough.html">http://www.vtk.org/doc/nightly/html/classvtkPassThrough.html</a></div><div><br></div><div>I thought there was another one, too, that did this, but maybe that was it...</div><div><br></div><div>-Eric</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><span class="Apple-style-span" style="font-size: medium;"><br></span></div></span>
</div>
<br><div><div>On Jun 17, 2010, at 1:10 PM, David Doria wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">On Thu, Jun 17, 2010 at 1:03 PM, Rodrigo Valiña Gutiérrez <span dir="ltr">&lt;<a href="mailto:rodrigo.valina@usc.es">rodrigo.valina@usc.es</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Having a vtkUnstructuredGrid, is there any way of passing it to an<br>
object in a way that this object produces the original input calling<br>
GetOutput() and GetOutputPort(). Specifically I want to get the<br>
initial unstructured grid data by calling GetOutputPort().<br><br></blockquote><div class="gmail_quote"><br></div>If I understand you correctly, all you'd have to do in the RequestData function in your filter is</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">output-&gt;ShallowCopy(input);</div><div class="gmail_quote"><br clear="all">Thanks,<br><br><div>David&nbsp;</div></div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br></div></body></html>