[Paraview] Contours of integer array

David E DeMarle dave.demarle at kitware.com
Mon Jul 11 07:37:58 EDT 2016


Could try threshold, or nearly equivalently clip by scalar, followed by
surface filter.

Another option is the material interface filter. That requires unstructured
grid input and an integer or idtype material array. Clip its output or use
opacity to see inside since its external surface looks the same as its
input's.
On Jul 11, 2016 6:41 AM, "Schlottke-Lakemper, Michael" <
m.schlottke-lakemper at aia.rwth-aachen.de> wrote:

> Maybe some visualization might help to illustrate the problem. This is
> what the domain decomposition looks like for two domains:
>
>
> There are only two domains with values 0 and 1, respectively. I then
> select & apply the “Cell Data to Point Data” filter, then the “Contour”
> filter with only one isosurface set to “0.5”. However, in this example, the
> result is a blank screen, i.e., no visible output from the Contour filter.
>
> In another example, I get the following result:
>
> The sharp, colored interfaces of the integer array in the back is clearly
> visible. In this case, there are 5 domains (values [0,4]) and I used 0.5,
> …, 3.5 as the isosurface values in the contour filter. While in this case I
> actually get an output (white lines), they follow the fuzzy output of “Cell
> Data to Point Data” and I am not able to reconstruct the sharp interfaces.
>
> To conclude, my problems are actually twofold: I would like to find out
> how to restore sharp contours, and - if that does not work - at least how
> to make this approach work for all datasets I am looking at.
>
> Again, thanks a lot in advance, and please excuse my double posting...
>
> Michael
>
> On 11 Jul 2016, at 12:16 , Schlottke-Lakemper, Michael <
> m.schlottke-lakemper at aia.rwth-aachen.de> wrote:
>
> Hi folks,
>
> I would like to visualize an integer array of an unstructured dataset
> based on voxels, which contains MPI rank ids generated by a filter we use.
> To achieve this, I plan to somehow extract the “sharp” interfaces, similar
> to what the contour filter does, to obtain a visual representation of the
> domain decomposition. However, for the contour filter, I first have to call
> “Cell data to point data”, which smears out the previously sharp interfaces
> and causes connectivity problems of the resulting contours, as in some
> areas the domain decomposition features are very small.
>
> Is there another way how I could extract these contours? Please note that
> I am not using vtkProcessId but rather an own integer array.
>
> Thanks a lot in advance
>
> Michael
>
>
> --
> Michael Schlottke-Lakemper
>
> Institute of Aerodynamics and Chair of Fluid Mechanics
> RWTH Aachen University
> Wüllnerstraße 5a
> 52062 Aachen
> Germany
>
> Phone: +49 (241) 80 95188
> Fax: +49 (241) 80 92257
> Mail: m.schlottke-lakemper at aia.rwth-aachen.de
> Web: http://www.aia.rwth-aachen.de
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160711/dd141bea/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 8758 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160711/dd141bea/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-2.png
Type: image/png
Size: 6808 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160711/dd141bea/attachment-0001.png>


More information about the ParaView mailing list