<HTML>
<HEAD>
<TITLE>Re: [Paraview] holes in distributed polydata</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hmm. &nbsp;It is possible that the &#8220;floating viewport&#8221; feature of IceT could be causing troubles with precision. &nbsp;Could you try adding<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>icetDisable(ICET_FLOATING_VIEWPORT);<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
somewhere in the </SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>vtkIceTRenderManager::UpdateIceTContext()</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> method and see if the problem goes away?<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 12/7/09 10:11 AM, &quot;burlen&quot; &lt;<a href="burlen.loring@gmail.com">burlen.loring@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Ken,<BR>
For that figure you mention I turned on &quot;surface with edges&quot; to show the<BR>
cell size better. Sorry I can see how that could be confusing. But just<BR>
to clarify, there aren't actually any holes in the surface.<BR>
<BR>
Here is another zoom in of the same area where &quot;surface with edges&quot; is<BR>
off and you can see that there are no holes.<BR>
<a href="http://nashi-submaster.ucsd.edu/movies/PV/bug-zoom.png">http://nashi-submaster.ucsd.edu/movies/PV/bug-zoom.png</a><BR>
<BR>
Now I also have hit a case where after running through D3 I got a hole<BR>
at the process boundary. this run had 80 processes, the surface shown<BR>
has dimensions of 5.5 x 10 units with 1500 x 2727quads with side 0.0036<BR>
units.<BR>
<a href="http://nashi-submaster.ucsd.edu/movies/PV/bug-d3.png">http://nashi-submaster.ucsd.edu/movies/PV/bug-d3.png</a><BR>
<BR>
I am only seeing this with the small quads and in parallel at process<BR>
boundaries.<BR>
<BR>
Burlen<BR>
<BR>
<BR>
Moreland, Kenneth wrote:<BR>
&gt; Burlen,<BR>
&gt;<BR>
&gt; For the zoom in, you say there are no holes/lines, but in the image I<BR>
&gt; see a grid of lines. It looks like you have a bunch of little quads<BR>
&gt; with spacing in between them. Is this the case? If so, then the &#8220;hole&#8221;<BR>
&gt; artifacts you see on the bottom of the screen are probably simply<BR>
&gt; aliasing artifacts. They are places where the pixel happens to align<BR>
&gt; right where the gap is.<BR>
&gt;<BR>
&gt; I can&#8217;t think of an easy way around this (other than to modify your<BR>
&gt; data to remove the gaps, if that makes sense). Anti-aliasing<BR>
&gt; techniques such as oversampling or smoothing would probably fix the<BR>
&gt; problem, but they would also break the parallel rendering so they are<BR>
&gt; no good.<BR>
&gt;<BR>
&gt; -Ken<BR>
&gt;<BR>
&gt;<BR>
&gt; On 12/5/09 12:18 AM, &quot;burlen&quot; &lt;<a href="burlen.loring@gmail.com">burlen.loring@gmail.com</a>&gt; wrote:<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;its ugly but I get a lot better performance by splitting the work up<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;dynamically with a small grain size. in the run shown below there are<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;only 16 processes but there are a whole lot of process boundaries.<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;I was able to reproduce it on a second system today.<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;these holes are pretty non-deterministic in where they show up. moving<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;the camera they can show up in different places. Which makes sense if<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;this is related to some parallel rendering/finite precision issue with<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;all those process boundaries. The small size of the quads are also a<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;factor, because I didn't ever notice it before when using larger<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;quads.<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;I saved the data as a legacy file and opening it on my desktop<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;there are<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;no issues, so its definitely a parallel only issue. Also running<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;through<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;D3 seems to fix it, but the issue may still be there because with the<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;minimal number of process boundaries its much less likely to get the<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;camera in just the right position.<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Berk Geveci wrote:<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt; Ouch. That's very distributed :-) Does the problem go away when you<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt; decrease the number of partitions?<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt; On Thu, Dec 3, 2009 at 10:55 AM, burlen &lt;<a href="burlen.loring@gmail.com">burlen.loring@gmail.com</a>&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;wrote:<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; I'm seeing lines where the background shows through a surface<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;polydata of<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; quads. When I zoom into the region to investigate the holes are<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;gone. Moving<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; the image around the holes appear in different places. They<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;depend on camera<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; position. In this surface there are 2.5E6 quads. the area is<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;10x16 units and<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; the number of quads is 1250x2000. each quad has 0.008 units on a<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;side. I<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; hadn't seen the holes before going to this higher resolution.<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;It's likely<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; that the hole is near a process boundary, in my polydata filter<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;each process<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; adds his quads to his output polydata, in this run the quads are<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;distributed<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; in strips of 512 as needed.<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; 3 holes/lines in bottom half of the image (black background<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;shows through):<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; <a href="http://nashi-submaster.ucsd.edu/movies/PV/bug.png">http://nashi-submaster.ucsd.edu/movies/PV/bug.png</a><BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; zoom in no holes/lines:<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; <a href="http://nashi-submaster.ucsd.edu/movies/PV/bug-zoom-2.png">http://nashi-submaster.ucsd.edu/movies/PV/bug-zoom-2.png</a><BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; process boundaries (from process id filter):<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; <a href="http://nashi-submaster.ucsd.edu/movies/PV/bug-procs.png">http://nashi-submaster.ucsd.edu/movies/PV/bug-procs.png</a><BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; Should PV be able to handle a polydata distributed like this?<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; _______________________________________________<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; Powered by www.kitware.com<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; Visit other Kitware open-source projects at<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; Follow this link to subscribe/unsubscribe:<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;_______________________________________________<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Powered by www.kitware.com<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Visit other Kitware open-source projects at<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Please keep messages on-topic and check the ParaView Wiki at:<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;<a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Follow this link to subscribe/unsubscribe:<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; **** Kenneth Moreland<BR>
&gt; *** Sandia National Laboratories<BR>
&gt; ***********<BR>
&gt; *** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
&gt; ** *** ** phone: (505) 844-8919<BR>
&gt; *** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> &lt;<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>&gt;<BR>
&gt;<BR>
<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>