<div>Hello NG,</div>
<div> </div>
<div> OK, after a day of trying different things, I have a VTK data file in which only the first 2 vertical "layers" 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 should be stored comes out empty.
</div>
<div>So, now, this is what I have by trying my script, Mayavi and Paraview:</div>
<div> </div>
<div>1) My script: <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> </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> </div>
<div><a href="http://xoomer.virgilio.it/infinity77/KPO5.zip">http://xoomer.virgilio.it/infinity77/KPO5.zip</a></div>
<div> </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> </div>
<div>Thank you very mucg for your help and suggestions.</div>
<div> </div>
<div>Andrea.</div>
<div><br> </div>
<div><span class="gmail_quote">On 4/4/06, <b class="gmail_sendername">Andrea Gavana</b> <<a href="mailto:andrea.gavana@gmail.com">andrea.gavana@gmail.com</a>> 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 & NG,</div>
<div> </div>
<div> 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 "hide" or filter out 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> </div>
<div>Thank you very much for your help and suggestions.</div>
<div> </div>
<div>Andrea.<br> </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> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:goodwin.lawlor@ucd.ie" target="_blank">goodwin.lawlor@ucd.ie
</a>> 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>><br>> Hello John & NG,<br>><br>> I made a relatively small example (with a VTK data file) that shows
<br>> the problem. Basically, once loaded the VTK file, just zoom since the<br>> grid occupies all the available screen space of the VTK window (more or<br>> less). Then, if you rotate the scene you will see that the grid is
<br>> corrupted in some zones (you will see some artifacts). This may be<br>> reproduced using:<br>><br>> 1) The script I am attaching (sorry it's Python);<br>> 2) Mayavi<br>> 3) Paraview<br>><br>> At this point I don't know what to do or to think... does anyone have a
<br>> suggestion? Could please someone try and see if he/she gets the same<br>> results? The VTK Data file is here:<br>><br>> <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>><br>> It's 600 Kb zipped and about 5 MB unzipped... sorry for that, but it is<br>> the only grid I have to show that problem...<br>><br>> Thank you very much for every suggestion/hint.
<br>><br>> Andrea. <br><SNIP><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>"Imagination Is The Only Weapon In The War Against Reality." <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>"Imagination Is The Only Weapon In The War Against Reality."<br><br><a href="http://xoomer.virgilio.it/infinity77/">http://xoomer.virgilio.it/infinity77/
</a><br>