View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013004 | VTK | (No Category) | public | 2012-03-15 15:41 | 2013-04-05 20:32 | ||||
Reporter | Leo Liu | ||||||||
Assigned To | George Zagaris | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0013004: 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. | ||||||||
Tags | No tags attached. | ||||||||
Project | TBD | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0028364) George Zagaris (developer) 2012-03-15 17:18 |
This is fixed and a topic is pushed to gerrit for review. See T260amr-i: amr-iterator-fixvtkOverlappingAMR::GetAMRBox internally downcasts to vtkUniformGridAMRDataIterator which has access methods to the CurrentLevel and correctly sets the Level of the AMRBox. The AMR box is now correctly constructed. |
Notes |
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 |
2012-03-15 17:18 | George Zagaris | Note Added: 0028364 | |
2012-03-15 17:18 | George Zagaris | Status | tabled => customer review |
2012-03-15 17:18 | George Zagaris | Resolution | open => fixed |
2013-04-05 20:32 | Berk Geveci | Status | customer review => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |