View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010615ParaViewBugpublic2010-04-27 04:202011-01-13 17:00
ReporterJean M. Favre 
Assigned ToUtkarsh Ayachit 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.8 
Target Version3.8.1Fixed in Version3.8.1 
Summary0010615: 2D AMR data is not read correctly causing iso-contour lines to be drawn at all levels regardless of overlaps
DescriptionIn 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.
Additional InformationThe 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.
TagsNo tags attached.
Project
Topic Name
Type
Attached Filesgz file icon test2dAMR.tar.gz [^] (1,979,177 bytes) 2010-04-27 04:20
? file icon test2d.vthb [^] (2,187 bytes) 2010-07-07 17:05

 Relationships

  Notes
(0020438)
Utkarsh Ayachit (administrator)
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 (manager)
2010-05-04 19:37

Tested trunk, local client, Windows
(0021294)
Utkarsh Ayachit (administrator)
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 (administrator)
2010-07-07 17:07

moved to release branch

 Issue History
Date Modified Username Field Change
2010-04-27 04:20 Jean M. Favre New Issue
2010-04-27 04:20 Jean M. Favre File Added: test2dAMR.tar.gz
2010-04-27 10:57 Utkarsh Ayachit Status backlog => tabled
2010-04-27 10:57 Utkarsh Ayachit Assigned To => Utkarsh Ayachit
2010-04-27 14:14 Utkarsh Ayachit Note Added: 0020438
2010-04-27 14:14 Utkarsh Ayachit Status tabled => @80@
2010-04-27 14:14 Utkarsh Ayachit Fixed in Version => 3.8.2
2010-04-27 14:14 Utkarsh Ayachit Resolution open => fixed
2010-05-04 19:37 Alan Scott Note Added: 0020570
2010-05-04 19:37 Alan Scott Status @80@ => closed
2010-06-15 09:45 Utkarsh Ayachit Fixed in Version 3.8.2 => 3.8.1
2010-06-15 09:45 Utkarsh Ayachit Target Version => 3.8.1
2010-07-07 09:55 Utkarsh Ayachit Fixed in Version 3.8.1 => Development
2010-07-07 10:13 Utkarsh Ayachit Note Added: 0021274
2010-07-07 17:00 Utkarsh Ayachit Note Deleted: 0021274
2010-07-07 17:05 Utkarsh Ayachit File Added: test2d.vthb
2010-07-07 17:06 Utkarsh Ayachit Note Added: 0021294
2010-07-07 17:07 Utkarsh Ayachit Note Added: 0021295
2010-07-07 17:07 Utkarsh Ayachit Fixed in Version Development => 3.8.1
2011-01-13 17:00 Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00 Source_changeset_attached => VTK master 020ef709


Copyright © 2000 - 2018 MantisBT Team