<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi David,
<div class=""><br class="">
</div>
<div class="">ah, ok. However, in this case I’m wondering what I am doing wrong here: If I use the Extract Region Surface filter, my dataset looks just like before. Do I need to create an array with a certain name that contains the information on which the
 regions are extracted? And does this work also for 2D (unstructured grid with vtkQuads) or only in 3D?</div>
<div class=""><br class="">
</div>
<div class="">Sorry for being so slow :-/</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 11 Jul 2016, at 14:29 , David E DeMarle <<a href="mailto:dave.demarle@kitware.com" class="">dave.demarle@kitware.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Extract region surface will do all domains at the same time.
<div class=""><br class="">
</div>
<div class="">What it does is iterate over all cells and extract the faces of the cell for which either their is no neighbor or the neighbor cell has different material.</div>
<div class=""><br class="">
</div>
</div>
<div class="gmail_extra"><br clear="all" class="">
<div class="">
<div class="gmail_signature" data-smartmail="gmail_signature">David E DeMarle<br class="">
Kitware, Inc.<br class="">
R&D Engineer<br class="">
21 Corporate Drive<br class="">
Clifton Park, NY 12065-8662<br class="">
Phone: 518-881-4909</div>
</div>
<br class="">
<div class="gmail_quote">On Mon, Jul 11, 2016 at 8:25 AM, Schlottke-Lakemper, Michael
<span dir="ltr" class=""><<a href="mailto:m.schlottke-lakemper@aia.rwth-aachen.de" target="_blank" class="">m.schlottke-lakemper@aia.rwth-aachen.de</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">Hi David,
<div class=""><br class="">
</div>
<div class="">Thanks for your answer. From what I understand, your suggestions allow me to extract the surface for a single domain. However, what I am really looking for is something like in the second example, i.e., where I get lines representing the domain
 boundaries between *all* domains at once. I just want them to align neatly with the actual boundaries and not have them diluted by the Cell-to-Point filter. Any idea how I can achieve that? Or maybe I just misunderstood you…</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class=""><span class="">
<div class="">On 11 Jul 2016, at 13:37 , David E DeMarle <<a href="mailto:dave.demarle@kitware.com" target="_blank" class="">dave.demarle@kitware.com</a>> wrote:</div>
<br class="">
</span>
<div class=""><span class="">
<p dir="ltr" class="">Could try threshold, or nearly equivalently clip by scalar, followed by surface filter.</p>
<p dir="ltr" class="">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.</p>
</span>
<div class="gmail_quote"><span class="">On Jul 11, 2016 6:41 AM, "Schlottke-Lakemper, Michael" <<a href="mailto:m.schlottke-lakemper@aia.rwth-aachen.de" target="_blank" class="">m.schlottke-lakemper@aia.rwth-aachen.de</a>> wrote:<br type="attribution" class="">
</span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class=""><span class="">Maybe some visualization might help to illustrate the problem. This is what the domain decomposition looks like for two domains:
<div class=""><br class="">
</div>
</span>
<div class=""><span class=""><PastedGraphic-1.png></span></div>
<span class="">
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">In another example, I get the following result:</div>
</span>
<div class=""><span class=""><PastedGraphic-2.png></span></div>
<div class="">
<div class="h5">
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">Again, thanks a lot in advance, and please excuse my double posting...</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On 11 Jul 2016, at 12:16 , Schlottke-Lakemper, Michael <<a href="mailto:m.schlottke-lakemper@aia.rwth-aachen.de" target="_blank" class="">m.schlottke-lakemper@aia.rwth-aachen.de</a>> wrote:</div>
<br class="">
<div class="">
<div style="word-wrap:break-word" class="">Hi folks,
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">Is there another way how I could extract these contours? Please note that I am not using vtkProcessId but rather an own integer array.</div>
<div class=""><br class="">
</div>
<div class="">Thanks a lot in advance</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<br class="">
<br class="">
<div class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<span style="border-collapse:separate;font-family:Helvetica;border-spacing:0px" class="">
<div style="word-wrap:break-word" class=""><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px" class="">
<div style="word-wrap:break-word" class="">--<br class="">
Michael Schlottke-Lakemper<br class="">
<br class="">
Institute of Aerodynamics and Chair of Fluid Mechanics<br class="">
RWTH Aachen University<br class="">
Wüllnerstraße 5a<br class="">
52062 Aachen<br class="">
Germany<br class="">
<br class="">
Phone: <a href="tel:%2B49%20%28241%29%2080%2095188" value="+492418095188" target="_blank" class="">
+49 (241) 80 95188</a><br class="">
Fax: <a href="tel:%2B49%20%28241%29%2080%2092257" value="+492418092257" target="_blank" class="">
+49 (241) 80 92257</a><br class="">
Mail: <a href="mailto:m.schlottke-lakemper@aia.rwth-aachen.de" target="_blank" class="">
m.schlottke-lakemper@aia.rwth-aachen.de</a><br class="">
Web: <a href="http://www.aia.rwth-aachen.de/" target="_blank" class="">http://www.aia.rwth-aachen.de</a></div>
</span></div>
</span></div>
</div>
</div>
<br class="">
</div>
_______________________________________________<br class="">
Powered by <a href="http://www.kitware.com/" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank" class="">
http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank" class="">
http://paraview.org/Wiki/ParaView</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank" class="">
http://markmail.org/search/?q=ParaView</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank" class="">http://public.kitware.com/mailman/listinfo/paraview</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
<div class="">
<div class="h5"><br class="">
_______________________________________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">
www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">
http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank" class="">
http://paraview.org/Wiki/ParaView</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank" class="">
http://markmail.org/search/?q=ParaView</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank" class="">http://public.kitware.com/mailman/listinfo/paraview</a><br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>