[vtkusers] How to get Output from PolyDataTransformFilter

David Doria daviddoria at gmail.com
Wed Feb 16 07:36:47 EST 2011


On Wed, Feb 16, 2011 at 7:15 AM, Rene_Wohlgethan <rwohlgethan at icqmail.com>wrote:

>
> Good Afternoon,
>
>
>  its me again :)
>
>
> Is there a possibility to get the "whole" Data of a TransformPolyDataFilter
> into a new PolyData?
>
>
> I tried
>
> vtkPolyData *Poly1 = vtkPolyData::New();
>
>        Poly1->DeepCopy(MarchingCubeTransformFilter->GetOutput());
>
>
>       vtkPolyDataMapper *PolyMapper = vtkPolyDataMapper::New();
>       PolyMapper->SetInput(Poly1);
>
>       vtkActor *PolyActor = vtkActor::New();
>       PolyActor->SetMapper(PolyMapper);
>
>  ren->AddActor(PolyActor);
>
>
> But when i run this, there is nothing visible in the Renderwindow, so i
> think  there is something wrong with :
>
> Poly1->DeepCopy(MarchingCubeTransformFilter->GetOutput());
>
>
> I looked quite a while and also searched for this Case, but i coulnd´t find
> something about this case.
>
>
> Perhaps someone of you knows how to solve this ?
>
>
> Thanks a lot!
>
>
> René
>

Was the input to MarchingCubeTransformFilter visible?

What is the output of:

Poly1->GetNumberOfPoints()

and

Poly1->GetNumberOfCells()

?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110216/e3afada9/attachment.htm>


More information about the vtkusers mailing list