MantisBT - ParaView
View Issue Details
0010615ParaViewBugpublic2010-04-27 04:202011-01-13 17:00
Jean M. Favre 
Utkarsh Ayachit 
normalmajoralways
closedfixed 
3.8 
3.8.13.8.1 
0010615: 2D AMR data is not read correctly causing iso-contour lines to be drawn at all levels regardless of overlaps
In ParaView-3.8.0-RC1/VTK/Filtering/vtkHierarchicalBoxDataSet.cxx

line 291:

        vtkAMRBox coarsebox(3,boxVec,boxVec+3);

wrongly assumes we are always dealing with 3D grids, because it creates a coarse box of dimensionality 3, instead of looking at the current box' Dimensionality.

The side effect is that when running with 2D data, we get messages like that

Generic Warning: In /local/apps/ParaView-3.8.0-RC1/VTK/Filtering/vtkAMRBox.cxx, line 625
This box cannot be coarsened

due to the fact that the sanity check on the 3rd dimension fails.

vtkAMRBox returns and the Visibility arrays are wrong.

The consequence is that isocontour lines are duplicated over ALL levels without visibility arrays.
The correct iso-contour lines can be drawn if disabling the sanity check of vtkAMRBox::Coarsen(), or better, by correctly creating the coarsebox in vtkHierarchicalBoxDataSet.cxx by checking the Dimensionality of the incoming grid.

I usually test with a default range of 10 isocontour thresholds. I include some simple 2D datasets for you to test.
No tags attached.
gz test2dAMR.tar.gz (1,979,177) 2010-04-27 04:20
https://www.vtk.org/Bug/file/8066/test2dAMR.tar.gz
? test2d.vthb (2,187) 2010-07-07 17:05
https://www.vtk.org/Bug/file/8229/test2d.vthb
Issue History
2010-04-27 04:20Jean M. FavreNew Issue
2010-04-27 04:20Jean M. FavreFile Added: test2dAMR.tar.gz
2010-04-27 10:57Utkarsh AyachitStatusbacklog => tabled
2010-04-27 10:57Utkarsh AyachitAssigned To => Utkarsh Ayachit
2010-04-27 14:14Utkarsh AyachitNote Added: 0020438
2010-04-27 14:14Utkarsh AyachitStatustabled => @80@
2010-04-27 14:14Utkarsh AyachitFixed in Version => 3.8.2
2010-04-27 14:14Utkarsh AyachitResolutionopen => fixed
2010-05-04 19:37Alan ScottNote Added: 0020570
2010-05-04 19:37Alan ScottStatus@80@ => closed
2010-06-15 09:45Utkarsh AyachitFixed in Version3.8.2 => 3.8.1
2010-06-15 09:45Utkarsh AyachitTarget Version => 3.8.1
2010-07-07 09:55Utkarsh AyachitFixed in Version3.8.1 => Development
2010-07-07 10:13Utkarsh AyachitNote Added: 0021274
2010-07-07 17:00Utkarsh AyachitNote Deleted: 0021274
2010-07-07 17:05Utkarsh AyachitFile Added: test2d.vthb
2010-07-07 17:06Utkarsh AyachitNote Added: 0021294
2010-07-07 17:07Utkarsh AyachitNote Added: 0021295
2010-07-07 17:07Utkarsh AyachitFixed in VersionDevelopment => 3.8.1
2011-01-13 17:00Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00Source_changeset_attached => VTK master 020ef709

Notes
(0020438)
Utkarsh Ayachit   
2010-04-27 14:14   
--------------------------------------
VTK Commit:
--------------------------------------
commit 219c1c7b86d0de0f1dbb406ed3a4bd9d7e965001
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Tue Apr 27 13:57:45 2010 -0400

    Fixed BUG 0010615: Issues with 2D AMR blocks.
    
    vtkHierarchicalBoxDataSet didn't save AMR box dimensionality. Nor was it
    preserved by readers/writers. This fixes that issue.

--------------------------------------
ParaView Commit:
--------------------------------------
commit 57d04173a5eb7fd97f7b699be0b794c25b657906
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Tue Apr 27 14:11:53 2010 -0400

    Updating VTK ref after fix for BUG 0010615.
(0020570)
Alan Scott   
2010-05-04 19:37   
Tested trunk, local client, Windows
(0021294)
Utkarsh Ayachit   
2010-07-07 17:06   
The originally attached vthb file will still produce errors since it does not have dimensionality information. Replace that with the separately attached test2d.vthb and it should work as expected.
(0021295)
Utkarsh Ayachit   
2010-07-07 17:07   
moved to release branch