[vtkusers] vtkExtractSelection documentation error?

David E DeMarle dave.demarle at kitware.com
Fri Feb 19 12:58:22 EST 2010


You are correct. I've committed a fix. Thanks!

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Thu, Feb 18, 2010 at 1:41 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> The documentation says:
>
> "The subset is described by the contents of the vtkSelection on its
> first input port. The dataset is given on its second input port."
>
> When I do this (following the documentation):
> extractSelection->SetInput(0, selection);
> extractSelection->SetInput(1, pointSource->GetOutput());
>
> it segfaults.
>
> When I reverse them, it works fine:
>
> extractSelection->SetInput(0, pointSource->GetOutput());
> extractSelection->SetInput(1, selection);
>
> Should these be reversed in the documentation? Or am I
> misunderstanding "ports vs connections" or something like that?
>
> 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