[vtk-developers] [VTK 0013004]: composite data set iterator seems buggy with vtkOverlappingAMR

Mantis Bug Tracker mantis at public.kitware.com
Thu Mar 15 15:41:55 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://vtk.org/Bug/view.php?id=13004 
====================================================================== 
Reported By:                Leo Liu
Assigned To:                George Zagaris
====================================================================== 
Project:                    VTK
Issue ID:                   13004
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     tabled
Project:                    TBD 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2012-03-15 15:41 EDT
Last Modified:              2012-03-15 15:41 EDT
====================================================================== 
Summary:                    composite data set iterator seems buggy with
vtkOverlappingAMR
Description: 
If you run the following code snippet, 

  vtkNew<vtkAMRGaussianPulseSource> imageSource;
  imageSource->Update();

  vtkOverlappingAMR* amr =
vtkOverlappingAMR::SafeDownCast(imageSource->GetOutputDataObject(0));
  vtkCompositeDataIterator * iter = amr->NewIterator();
  iter->InitTraversal();
  while ( !iter->IsDoneWithTraversal() )
    {
    vtkAMRBox box =amr->GetAMRBox(iter);
    vtkUniformGrid* grid =
vtkUniformGrid::SafeDownCast(iter->GetCurrentDataObject());
    assert(grid);
    int numCells = grid->GetNumberOfCells();
    cout<<"AMR box info: "<<"level "<<box.GetLevel()<<", Block:
"<<box.GetBlockId()<<endl;
    iter->GoToNextItem();
    }

You get the output:

AMR box info: level 0, Block: 0
AMR box info: level 0, Block: 0
AMR box info: level 0, Block: 1

Notice that the first and the second block has identical (level, block) pair.
This is not right.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-03-15 15:41 Leo Liu        New Issue                                    
2012-03-15 15:41 Leo Liu        Status                   backlog => tabled   
2012-03-15 15:41 Leo Liu        Assigned To               => George Zagaris  
======================================================================




More information about the vtk-developers mailing list