Thanks Will.<br>You are right. In my application,  I do use a filter BUT that is a VTKThreshold filter for showing only certain cells.<br>If the two overlapping cells pass this threshold filter, then I don't see them at all (if i use structured grid, then you are right I see something not pretty but I see something).<br>
<br>I did not use a VTKDataSetSurface filter. I understand if I used that then only the boundary cells will be rendered.<br>But what I used was just a threshold filter.<br><br>Infact I created a small ascii file with 2 cells and opened in Paraview as a Legacy VTK file.<br>
No filter. I cant see the two cells if ALL NODES ARE IDENTICAL.<br><br>But if some nodes are identical and some different, then I see some surfaces.<br><br>Both cases copied here.<br><br>//===============ALL NODES IDENTICAL=================NOTHING RENDERED<br>
# vtk DataFile Version 3.0<br>vtk output<br>ASCII<br>DATASET UNSTRUCTURED_GRID<br>POINTS 8 float<br>0 0 0 <br>1 0 0 <br>1 1 0<br>0 1 0<br>0 0 1 <br>1 0 1<br>1 1 1<br>0 1 1<br>CELLS 2 18<br>8 0 1 3 2 4 5 7 6<br>8 0 1 3 2 4 5 7 6<br>
CELL_TYPES 2<br>12<br>12<br><br><br>//===============SOME NODES IDENTICAL=================SOME FACES RENDERED<br># vtk DataFile Version 3.0<br>vtk output<br>ASCII<br>DATASET UNSTRUCTURED_GRID<br>POINTS 10 float<br>0 0 0 <br>
1 0 0 <br>0 1 0<br>1 1 0<br>0 0 1 <br>1 0 1<br>0 1 1<br>1 1 1<br>1 1 0<br>1 1 1<br>CELLS 2 18<br>8 0 1 3 2 4 5 7 6<br>8 0 1 8 2 4 5 9 6<br>CELL_TYPES 2<br>12<br>12<br><br><br>Thanks<br>Bhanu<br><br><br><br><div class="gmail_quote">
On Fri, Feb 22, 2013 at 10:40 AM, Will Schroeder <span dir="ltr"><<a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Rendering is not the problem. You can render a zillion things on top of each other. It won't look pretty but you'll see something.<div><br></div><div>Probably what is the problem is that you are going through some sort of geometry filter. For 3D cells, the geometry filter looks at the number of times each "face" is used by 3D cells. It the number of uses is <=1, then it's a boundary face and is rendered. If used 2 times, then it's an interior cell and not extracted (nor rendered).</div>


<div><br></div><div>W</div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 10:56 AM, Bhanu Hariharan <span dir="ltr"><<a href="mailto:bhanu@petrotel.com" target="_blank">bhanu@petrotel.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks. I will look into the composite dataset but I do not have anything other than hexahedrons.<br><br>I think it looks like VTKUnstructuredGrid will not render in the situation of overlapping cells and I have to find a way out outside of VTK.<div>


<div><br>
<br><br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 9:28 AM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">VTK has other type of data structure such a composite-dataset / multi-block which let you create a dataset that is composed of multiple dataset (i.e. Unstructured grid in your case).<div>



And what you do is basically share the same vtkPoints across all your unstructured grids which will then be gathered by the composite dataset.</div>
<div>and rendered as a single dataset.</div><div><br></div><div>Hope that explain a bit more,</div><div><br></div><div>Seb</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Fri, Feb 22, 2013 at 10:24 AM, Bhanu Hariharan <span dir="ltr"><<a href="mailto:bhanu@petrotel.com" target="_blank">bhanu@petrotel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




Sebastian, I do not understand what you mean by multi-block. Could you please elaborate. Thanks.<div><div><br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 9:20 AM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Unless it's a multi-block and then it is not the same dataset anymore...</div><div><div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 10:17 AM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Then I'm not sure that VTK can handle 2 cells that are based on exactly the same points ID.</div><div>






<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 10:12 AM, Bhanu Hariharan <span dir="ltr"><<a href="mailto:bhanu@petrotel.com" target="_blank">bhanu@petrotel.com</a>></span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Sebastian. For the 2 cell case, I start with 16 points and identify duplicates and bring it down to 8 and the two cells now map to the same 8 nodes. In this scenario, can VTK render both cells with some flags turned on.<br>








Or can you please suggest another way.<br><br>But removing duplicate nodes is a must for my application due to memory constraints.<span><font color="#888888"><br><br>-Bhanu</font></span><div>
<div><br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 9:03 AM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br>








<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">duplicate the points.</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Feb 22, 2013 at 9:59 AM, bhanu <span dir="ltr"><<a href="mailto:bhanu@petrotel.com" target="_blank">bhanu@petrotel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please can anyone answer this query - is this forum active?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkUnstructuredGrid-Not-rendering-Overlapping-Cells-tp5718739p5718763.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkUnstructuredGrid-Not-rendering-Overlapping-Cells-tp5718739p5718763.html</a><br>










Sent from the VTK - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>William J. Schroeder, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a><br>


<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>(518) 881-4902
</font></span></div>
</blockquote></div><br>