<div dir="ltr"><div><div><div><div>Hi everybody,<br><br></div>I would like to confirm that I have successfully obtained the polygonal boundary of my vtkUnstructuredGrid using vtkDataSetSurfaceFilter. The problem was in the way I was building the mesh. Even if the coordinates of geometric coincident points between adjacent cells were the same, I was inserting them with different point id's so the cells were considered as disconnected by the filter.<br></div>I apologize for bothering the list with the previous post.<br><br></div> Thank you <br><br></div> Luca<br><div><div> <br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 30, 2016 at 11:39 AM, Luca Pallozzi Lavorante <span dir="ltr"><<a href="mailto:lplavorante@gmail.com" target="_blank">lplavorante@gmail.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"><div>Hi vtkusers, <br><br></div>regarding my previous post, in which I wrote about visualizing a smooth polygonal boundary obtained from an unstructured grid, I have verified that vtkDataSetSurfaceFilter returns all the faces of the cells in the original grid instead of the boundary cells. There is a similar 2009 post about this issue by Teresa Azevedo:<br><div><div><br><a href="http://public.kitware.com/pipermail/vtkusers/2009-October/054301.html" target="_blank">http://public.kitware.com/<wbr>pipermail/vtkusers/2009-<wbr>October/054301.html</a><br><br></div><div>She used vtkGeometryFilter to obtain the boundary (vtkDataSetSurfaceFilter, which I use, is a faster version, as stated in the documentation), but instead the filter returned all the faces of the grid's cells. <br></div><div>Is there anything I am missing? Most of the external edges generated by vtkDataSetSurfaceFilter are non-manifold because two adjacent triangles on the boundary share an edge with an internal triangle from the non-boundary face of a 3D cell (Triquadratic hexahedron). I think this is the cause for the non-smooth appearance that the rendered surface gets after applying vtkPolyDataNormals. So I though I should remove all non-boundary faces in order to get a correct normal generation.<br>I know the 3D cells do share 2D faces in the non-boundary portion of the grid because I am providing the cells' coordinates myself. How can I get only the boundary faces? Is there any condition in the vtkDataSetSurfaceFilter and vtkGeometryFilter classes which maybe my unstructured grid is not respecting?<br><br></div><div>Thank you very much,<br><br></div><div> Luca <br></div></div></div>
</blockquote></div><br></div>