[vtkusers] vtkPolyData::GetCellNeighbors(...) question -> success!

Nils Hanssen hanssen at caesar.de
Wed May 8 03:50:54 EDT 2002


Hi Luca,

vtkCleanPolyData is the solution, everything is working fine now.
Thank you so much for your hint!

Nils




>Maybe the problem is duplicate points. Did you try to clean up the mesh
with
>vtkCleanPolyData after vtkTriangleFilter?
>
>Luca


>From: "Nils Hanssen" <hanssen at caesar.de>
>To: <vtkusers at public.kitware.com>
>Subject: [vtkusers] vtkPolyData::GetCellNeighbors(...) question
>Date: Tue, 7 May 2002 18:24:53 +0200
>
>Hi,
>
>I want to check if a polymesh consisting of triangles or triangle strips is
>closed or not (necessary for volume computation).
>For that, I just check, if every triangle cell has exactly 3 triangle
>neighbors.
>
>To be sure, I first triangulate the polymesh (to get rid of the strips) and
>then call ->BuildCells() and ->BuildLinks() on the mesh.
>Then I traverse trough the triangles of the mesh and check for each edge,
>if
>it has exactly one other triangle that joins this edge.
>For that, I provide the current cell ID, the two point IDs of the current
>edge and the list that is filled with the ID(s) of adjacent triangle cells.
>
>I am pretty sure that the mesh that I am testing is closed. But just for
>the
>first triangle, another adjacent triangle cannot be found.
>Do I miss something? Do I have to preprocess the polydata in some other
>way?
>
>Thank you for any suggestions!
>
>Regards,
>Nils
>
>-------------------------
>Nils Hanssen
>Surgical Systems Laboratory
>research center c ae sa r
>Friedensplatz 16
>53111 Bonn
>fon: +49-228-9656-249
>fax: +49-228-9656-111
>http://www.caesar.de/ssl
>
>
>




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list