<div>Hello NG,</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; OK, after a day of trying different things, I have a VTK data file in which only the first 2 vertical &quot;layers&quot; of my unstructured grid are shown. The new grid is composed by 5014 hexahedron cells (having thus 40112 points), with a single property as scalar. By using the script attached to the mail, I have checked that there are *NO* coincident cells. The file in which the coincident cells&nbsp;should be stored comes out empty.
</div>
<div>So, now, this is what I have by trying my script, Mayavi and Paraview:</div>
<div>&nbsp;</div>
<div>1) My script:&nbsp; <a href="http://xoomer.virgilio.it/infinity77/myscript.JPG">http://xoomer.virgilio.it/infinity77/myscript.JPG</a></div>
<div>2) Mayavi: <a href="http://xoomer.virgilio.it/infinity77/mayavi.jpg">http://xoomer.virgilio.it/infinity77/mayavi.jpg</a></div>
<div>3) Paraview: <a href="http://xoomer.virgilio.it/infinity77/paraview.jpg">http://xoomer.virgilio.it/infinity77/paraview.jpg</a></div>
<div>&nbsp;</div>
<div>All of them shows this problematic behavior... the cells seems corrupted with severe artifacts, even if I have checked that there are no coincident cells (at this point I hope that my checking script is wrong...). The VTK data file, for those interested in, is here:
</div>
<div>&nbsp;</div>
<div><a href="http://xoomer.virgilio.it/infinity77/KPO5.zip">http://xoomer.virgilio.it/infinity77/KPO5.zip</a></div>
<div>&nbsp;</div>
<div>Is about 250 Kb, much smaller than the other :-)</div>
<div><br>I really hope that I am doing something wrong somewhere... otherwise it starts to look like a bug, but I am clearly too inexperienced to talk about bugs.</div>
<div>&nbsp;</div>
<div>Thank you very mucg for your help and suggestions.</div>
<div>&nbsp;</div>
<div>Andrea.</div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 4/4/06, <b class="gmail_sendername">Andrea Gavana</b> &lt;<a href="mailto:andrea.gavana@gmail.com">andrea.gavana@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="DIRECTION: ltr">
<div><br>Hello Goodwin &amp; NG,</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; thank you very much for your help. Unfortunately, it seems that the use of these 2 methods does not make any difference :-( . Anyway, you are right, there are quite a lot of duplicated cells... the problem is that the grid comes in a binary format from another gridding software (which I can not control). Mhm... is there a way in VTK to &quot;hide&quot; or filter out&nbsp;the cells that are duplicated (share the same points)? I think this is the last alternative I have... 
</div></div>
<div style="DIRECTION: ltr"><span class="q">
<div>&nbsp;</div>
<div>Thank you very much for your help and suggestions.</div>
<div>&nbsp;</div>
<div>Andrea.<br>&nbsp;</div></span></div>
<div style="DIRECTION: ltr"><span class="e" id="q_10a652bea4a91118_2">
<div><span class="gmail_quote">On 4/4/06, <b class="gmail_sendername">Goodwin Lawlor</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:goodwin.lawlor@ucd.ie" target="_blank">goodwin.lawlor@ucd.ie
</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Andrea Gavana wrote:<br>&gt;<br>&gt; Hello John &amp; NG,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I made a relatively small example (with a VTK data file) that shows 
<br>&gt; the problem. Basically, once loaded the VTK file, just zoom since the<br>&gt; grid occupies all the available screen space of the VTK window (more or<br>&gt; less). Then, if you rotate the scene you will see that the grid is 
<br>&gt; corrupted in some zones (you will see some artifacts). This may be<br>&gt; reproduced using:<br>&gt;<br>&gt; 1) The script I am attaching (sorry it's Python);<br>&gt; 2) Mayavi<br>&gt; 3) Paraview<br>&gt;<br>&gt; At this point I don't know what to do or to think... does anyone have a 
<br>&gt; suggestion? Could please someone try and see if he/she gets the same<br>&gt; results? The VTK Data file is here:<br>&gt;<br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://xoomer.virgilio.it/infinity77/KPO3.zip" target="_blank">
http://xoomer.virgilio.it/infinity77/KPO3.zip </a><br>&gt;<br>&gt; It's 600 Kb zipped and about 5 MB unzipped... sorry for that, but it is<br>&gt; the only grid I have to show that problem...<br>&gt;<br>&gt; Thank you very much for every suggestion/hint.
<br>&gt;<br>&gt; Andrea. <br>&lt;SNIP&gt;<br><br>Hi Andrea,<br><br>Looks like coincident cells... try:<br><br>surfaceMapper.SetResolveCoincidentTopologyToPolygonOffset()<br><br>or<br><br>surfaceMapper.SetResolveCoincidentTopologyToShiftZBuffer
()<br><br>hth<br><br>Goodwin<br><br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ </a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br></blockquote></div><br><br clear="all"><br></span></div>
<div style="DIRECTION: ltr"><span class="q">-- <br>&quot;Imagination Is The Only Weapon In The War Against Reality.&quot; <br><br></span></div>
<div style="DIRECTION: ltr"><span class="e" id="q_10a652bea4a91118_4"><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://xoomer.virgilio.it/infinity77/" target="_blank">http://xoomer.virgilio.it/infinity77/
</a><br></span></div></blockquote></div><br><br clear="all"><br>-- <br>&quot;Imagination Is The Only Weapon In The War Against Reality.&quot;<br><br><a href="http://xoomer.virgilio.it/infinity77/">http://xoomer.virgilio.it/infinity77/
</a><br>