<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I see where you are coming from, vtk is awesome in that it provides a
lot of well documented very thoroughly debugged functionality. Just a
thought... vtkPolyData is a type(not in the C++ sense) of unstructured
grid, in fact all of the cell types applicable for use with the
unstructured grid are available for use with the polydata. In my
experience vtkPolyData class encapsulates the functionality of the
vtkUnstructuredGrid, although they are not symetrically interchangable.
You may be able to use poydata in place of the unstructured grid. &amp;
If you couldn't it is very easy to convert between the two, by taking
the point set, cells, and point or cell data from one and inserting it
into the other. So what you might try is to convert your unstructured
grid to polydata clean it then convert back.<br>
<br>
Burlen<br>
<br>
<br>
Oliver Gloth wrote:
<blockquote cite="mid:00a001c83821$37df0ca0$0700a8c0@cod" type="cite">
  <pre wrap="">I had a look at vtkCleanPolyData and the classes vtkMergePoints and
vtkPointLocator seem to be good starting points. It is required to clean a
vtkUnstructuredGrid, that's why the vtkCleanPolyData is not directly
applicable - but thanks for pointing me in the right direction.

The links you sent (thanks btw.) are not completely unknown to me and I
might use the Netgen package for this project. It is not a CFD project, but
a mesh generation project (I would not use VTK data structures for a solver
...). I gave some thought to using VTK: it might not be ideal, but
definitely well suited. Tools like, for example, vtkMergePoints, are very
valuable and they can be a real pain to implement and debug. The other thing
I like about VTK is that it is well documented and has a large user
community, and yes visualisation is very easy indeed!

Oliver

-----Original Message-----
From: burlen [<a class="moz-txt-link-freetext" href="mailto:burlen@apollo.sr.unh.edu">mailto:burlen@apollo.sr.unh.edu</a>] 
Sent: 06 December 2007 16:28
To: Oliver Gloth
Cc: vtkusers
Subject: Re: [vtkusers] eliminate duplicate nodes

Does the vtkCleanPolyData class do what you want??

Although I supose you could do it, I am not convinced that VTK would be 
ideal for CFD project, you might find these links of use:

<a class="moz-txt-link-freetext" href="http://www.andrew.cmu.edu/user/sowen/softsurv.html">http://www.andrew.cmu.edu/user/sowen/softsurv.html</a>
<a class="moz-txt-link-freetext" href="http://www.cs.cmu.edu/~quake/triangle.html">http://www.cs.cmu.edu/~quake/triangle.html</a>
<a class="moz-txt-link-freetext" href="http://www.hpfem.jku.at/netgen/">http://www.hpfem.jku.at/netgen/</a>

On the other hand at least visualization would be easy.
Burlen


Oliver Gloth wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Dear VTK Users,

I am currently working on an open-source project - developing a mesh
generator for CFD simulations. Due to budget and time constraints I have
chosen to use the VTK data structures as a basis, instead of writing my
    </pre>
  </blockquote>
  <pre wrap=""><!---->own
  </pre>
  <blockquote type="cite">
    <pre wrap="">data structures. Furthermore this makes building a GUI (based on Qt) to
modify and visualise the mesh easy. One thing that is required is a filter
to merge two grids and eliminate duplicate nodes. Is such a thing already
part of VTK, or does somebody have a piece of code that would do this? The
implementation is not trivial, because the 3D search can be very time
consuming. If it doesn't exist yet I will implement it myself, but I would
like to avoid double work as much as possible.

Oliver

  
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
</body>
</html>