[vtkusers] Strange behavior of vtkImageAlgorithm subclass - empty output
Bill Lorensen
bill.lorensen at gmail.com
Sat Jan 30 11:03:47 EST 2010
By design, I don't think the ShallowCopy copies the extents. Extents
belonog to the pipeline and not the data object.
Try
output->SetExtent(grid->GetExtent());
output->SetUpdateExtent(grid->GetUpdateExtent());
output->SetWholeExtent(grid->GetWholeExtent());
On Sat, Jan 30, 2010 at 9:01 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
> On Fri, Jan 29, 2010 at 11:38 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>> What results from:
>> output->Print(std::cout);
>
> 1)
> Is there a difference between
> cout << *output;
> and
> output->Print(std::cout);
> ?
>
> 2)
> I compared the output of 'grid' and 'output' (both inside
> RequestData). Here are the differences:
>
> grid:
> UpdateExtent: 0, 10, 0, 10, 0, 10
> WholeExtent: 0, 10, 0, 10, 0, 10
>
> output:
> UpdateExtent: 0, -1, 0, -1, 0, -1
> WholeExtent: 0, -1, 0, -1, 0, -1
>
> MaximumNumberOfPieces: -1
>
> Number of Points and Number Of Cells are correct in both. Everything
> else is the same.
>
> 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