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