MantisBT - ParaView
View Issue Details
0011065ParaViewFeaturepublic2010-07-29 20:062015-01-11 08:37
Alan Scott 
Utkarsh Ayachit 
highminoralways
closedfixed 
 
3.98.0 
Sandia
11065_enhanced_amr_outline
0011065: Enhanced background
I have a user that would like to add a background 3d grid around objects. This particular person wants this functionality around CTH data. I have added a screenshot that shows one example of this functionality. I did it as follows:

Load Dave's small CTH dataset. Wireframe, then cull front faces.
Load Dave's small CTH dataset.
Cell to Point data.
isoVolume the upper sphere.
isovolume the lower block.
isovolume the pressure as 1e9.

Notice how 3d the object looks!
No tags attached.
related to 0011067closed Utkarsh Ayachit surface with blocks 
png cthGrid.png (124,580) 2010-07-29 20:06
https://www.vtk.org/Bug/file/8284/cthGrid.png
png

png bug11065.png (14,917) 2012-09-01 20:48
https://www.vtk.org/Bug/file/9267/bug11065.png
png

png Screenshot-ParaView 3.14.1-1757-g76e4970 64-bit.png (134,604) 2012-09-11 16:55
https://www.vtk.org/Bug/file/9276/Screenshot-ParaView%203.14.1-1757-g76e4970%2064-bit.png
png
Issue History
2010-07-29 20:06Alan ScottNew Issue
2010-07-29 20:06Alan ScottFile Added: cthGrid.png
2010-09-01 11:23Utkarsh AyachitNote Added: 0022062
2010-09-01 11:23Utkarsh AyachitTarget Version3.10 => 3.10.shortlist
2010-09-15 14:01Utkarsh AyachitNote Added: 0022229
2010-09-15 14:01Utkarsh AyachitStatusbacklog => @80@
2010-09-15 14:01Utkarsh AyachitFixed in Version => 3.10
2010-09-15 14:01Utkarsh AyachitResolutionopen => fixed
2010-09-15 14:01Utkarsh AyachitAssigned To => Utkarsh Ayachit
2010-09-15 21:59Alan ScottNote Added: 0022247
2010-09-15 21:59Alan ScottStatus@80@ => closed
2011-02-01 20:20Alan ScottNote Added: 0025223
2011-02-01 20:20Alan ScottStatusclosed => backlog
2011-02-01 22:18Alan ScottPrioritynormal => high
2011-02-01 22:18Alan ScottStatusbacklog => tabled
2011-06-16 13:10Zack GalbreathCategoryFeature Request => Feature
2011-06-24 14:21Alan ScottStatusbacklog => todo
2011-06-27 08:32Utkarsh AyachitProject => Sandia
2012-05-31 10:23Utkarsh AyachitStatustodo => backlog
2012-05-31 10:26Utkarsh AyachitAssigned ToUtkarsh Ayachit =>
2012-05-31 10:26Utkarsh AyachitStatusbacklog => todo
2012-09-01 20:47Utkarsh AyachitNote Added: 0029097
2012-09-01 20:47Utkarsh AyachitNote Added: 0029098
2012-09-01 20:48Utkarsh AyachitFile Added: bug11065.png
2012-09-01 20:50Utkarsh AyachitRelationship addedrelated to 0011067
2012-09-11 16:55Utkarsh AyachitFile Added: Screenshot-ParaView 3.14.1-1757-g76e4970 64-bit.png
2012-09-11 16:55Utkarsh AyachitTopic Name => 11065_enhanced_amr_outline
2012-09-11 16:55Utkarsh AyachitNote Added: 0029171
2012-09-11 16:55Utkarsh AyachitStatustodo => gatekeeper review
2012-09-11 16:55Utkarsh AyachitFixed in Version3.10 => git-next
2012-09-11 16:55Utkarsh AyachitAssigned To => Utkarsh Ayachit
2012-09-11 16:57Utkarsh AyachitNote Added: 0029172
2012-09-14 11:09Utkarsh AyachitFixed in Versiongit-next => git-master
2012-09-14 11:09Utkarsh AyachitStatusgatekeeper review => customer review
2012-09-14 11:09Utkarsh AyachitNote Added: 0029205
2012-09-18 22:26Alan ScottNote Added: 0029220
2012-09-18 22:26Alan ScottStatuscustomer review => closed
2012-10-29 17:04Utkarsh AyachitFixed in Versiongit-master => 3.98.0
2015-01-11 08:34Utkarsh AyachitSource_changeset_attached => ParaView master 697b9e2f
2015-01-11 08:36Utkarsh AyachitSource_changeset_attached => ParaView master b3c8ba78
2015-01-11 08:36Utkarsh AyachitSource_changeset_attached => ParaView master ad2f27ea
2015-01-11 08:36Utkarsh AyachitSource_changeset_attached => ParaView master 0c1121d7
2015-01-11 08:37Utkarsh AyachitSource_changeset_attached => ParaView master 6b47a997

Notes
(0022062)
Utkarsh Ayachit   
2010-09-01 11:23   
Well this is very dicey. Note that in the attached image, you are only seeing the refinement at the outer most parts of the CTH data. Now if we project the highest refinement available in the interior to the background, then that can be misleading too, since it may lead the user to believe that that entire extruded volume has that high resolution.

It may be easier to provide a python macro, in this case.
(0022229)
Utkarsh Ayachit   
2010-09-15 14:01   
Merge topic 'bug_11065'

770af22 Added a new demo script for showing grid background.
---------------

A new demo script show_grid_as_background has
been added. One can go to the Python shell and make this script a Macro. After
that, once you've loaded your AMR dataset done IsoVolume (or whatever), simply
click on the reader (make it active) and then choose "show_grid_as_background"
from the "Macro" menu or toolbar.

We need to make it simpler to distribute macros with ParaView, but that's another bug.
(0022247)
Alan Scott   
2010-09-15 21:59   
Let me bounce this by the user, and I will reopen if necessary. At this time, lets assume the feature is resolved.
(0025223)
Alan Scott   
2011-02-01 20:20   
I have talked to my user, and also tried the suggested macro. I have been unclear as to what I want/need.

If I have an object, such as a car or a sphere, I want to place this object into a space with a grid pattern on the furthest three planes, formed by planes perpendicular to the X axis, Y axis and Z axis. This would be like drawing a grid on the wall of the garage.

I am sending a set of screenshots to Utkarsh, showing what I want. These screenshots also show bug number 11067.

Screenshot 000000 - This shows the desired background functionality - a regular grid pattern. Notice that the foreground pattern shows the AMR block pattern.

Screenshot 000713 - shows the desired background functionality, on background and foreground.

Screenshot 000450 - shows the desired background only. Note how clear the numbers and labels are. Note that the labels are not on top of the numbers.

(0029097)
Utkarsh Ayachit   
2012-09-01 20:47   
A partial fix is on its way to "git-mater". The missing part is the ability to hide the front or back faces on outlines.
(0029098)
Utkarsh Ayachit   
2012-09-01 20:47   
commit 0c1121d78bf9136f3686f91d5d7f93b68660324e
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Sat Sep 1 20:40:07 2012 -0400

    BUG 0011065. Added support for "enhanced outline" for AMR.
    
    For AMR, instead of showing merely the outer outline, we now show the outer
    outline etched with the dataset outlines. Unlike in past, the internal block
    outlines are not shown, merely those on the outer surface.
    
    Also for overlapping AMR, outline doesnt' need any heavy data. It merely uses
    the AMR box information.
(0029171)
Utkarsh Ayachit   
2012-09-11 16:55   
commit 76e49705184ee7a1c50c7b56c6b808be017e3ed8
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Tue Sep 11 16:17:03 2012 -0400

    Updating test to include amr outline with front face culling.

commit 6b47a997212fc6f809ac563e378f577758d6a1b9
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Tue Sep 11 15:41:58 2012 -0400

    BUG 0011065. Adding face culling support for outline for AMR.
    
    To add support for face culling for outlines, we make vtkOutlineRepresentation a
    vtkGeometryRepresentationWithFaces subclass. vtkOutlineRepresentation now
    overrides certain methods in vtkGeometryRepresentation to ensure that the
    representation always generates outlines. Cleaning up the xml for
    "OutlineRepresentation" by being the same as the "SurfaceRepresentation". It
    will have a few extra properties like "Representation", "SuppressLOD", etc. that
    have no effect, but the XML ends up being much cleaner.

commit 150d8db57821799ef62d9ca236135c98664fe0f8
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Tue Sep 11 15:37:51 2012 -0400

    Generate faces for outlines of AMR dataset.
    
    For BUG 0011065, we need to enable culling of front faces. For that its
    essential that the outlines have front/back faces to begin with. Hence, making
    vtkPVGeometryFilter generate faces for outlines for AMR datasets. Since
    vtkOutlineRepresentation is anyways set to show "wireframe", the resulting
    visualization remains unchanged.
    
    This can be theoretically done for all data types, but leaving that for a later
    date.
(0029172)
Utkarsh Ayachit   
2012-09-11 16:57   
To test, simply show the outline of the CTH dataset and then in the "advanced view", select "Backface Representation" type to be "Cull Frontface".

Attached is an image with cube-axes (with "Fly Mode" set to "Outer Edges").
(0029205)
Utkarsh Ayachit   
2012-09-14 11:09   
merged in master, if applicable.
(0029220)
Alan Scott   
2012-09-18 22:26   
Lets call this "close enough" until I get very specific feedback from the users. This closes this feature request for 4.0.

Tested remote server, Linux, master.