[vtkusers] Unstructured grid output

Rodrigo Valiña Gutiérrez rodrigo.valina at usc.es
Fri Jun 18 04:52:03 EDT 2010


Thanks, Eric, it worked for me.

David: ok but I do not know whether I can derive VTK classes in Python...

Rodrigo

On Thu, Jun 17, 2010 at 9:54 PM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> 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:
> http://www.vtk.org/doc/nightly/html/classvtkPassThrough.html
> I thought there was another one, too, that did this, but maybe that was
> it...
> -Eric
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
> On Jun 17, 2010, at 1:10 PM, David Doria wrote:
>
> On Thu, Jun 17, 2010 at 1:03 PM, Rodrigo Valiña Gutiérrez
> <rodrigo.valina at usc.es> wrote:
>>
>> Hi,
>>
>> Having a vtkUnstructuredGrid, is there any way of passing it to an
>> object in a way that this object produces the original input calling
>> GetOutput() and GetOutputPort(). Specifically I want to get the
>> initial unstructured grid data by calling GetOutputPort().
>>
>
> If I understand you correctly, all you'd have to do in the RequestData
> function in your filter is
> output->ShallowCopy(input);
> Thanks,
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list