<div dir="ltr">Thank you Sven,<div><br></div><div>I follow your advice, in <span style="font-family:arial,sans-serif;font-size:14px">vtkCleanUnstructuredGrid, </span>I replace vtkMergePoints locator by vtkPointLocator. Hereby<span style="font-family:arial,sans-serif;font-size:14px">, I am able to specify the tolerance to merge points, and get the desired results. </span></div>
<div><span style="font-family:arial,sans-serif;font-size:14px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:14px">Thank you very much.</span></div><div><span style="font-family:arial,sans-serif;font-size:14px">yoshimi</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/2 Sven Buijssen <span dir="ltr"><<a href="mailto:sven.buijssen@tu-dortmund.de" target="_blank">sven.buijssen@tu-dortmund.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Yoshimi,<br>
<br>
The Clean to Grid filter internally invokes vtkCleanUnstructuredGrid<br>
which can merge duplicate points, but they need to have coincident<br>
coordinates. In contrast, very old versions of ParaView also merged very<br>
close points, but that is not true any more, see closed issue<br>
<a href="http://www.paraview.org/Bug/view.php?id=9728" target="_blank">http://www.paraview.org/Bug/view.php?id=9728</a><br>
<br>
It is actually very simple to derive a (c++-based) plugin from<br>
vtkCleanUnstructuredGrid that provides a filter that merges points<br>
within a distance of less than a (configurable) fraction of the length<br>
of the diagonal of the bounding box of the data set. But in order to be<br>
able to use said plugin you would need to compile ParaView from source.<br>
Not sure whether you would want to go to such lengths.<br>
<br>
Sven<br>
<br>
<br>
kenichiro yoshimi wrote, On 02.09.2013 07:47:<br>
<div><div class="h5">> Hi all,<br>
><br>
> I want to merge the very close (or coincident) points in PV. For<br>
> instance, there are very close two points and one point apart from them,<br>
> i.e., an ASCII VTK File:<br>
> ----------<br>
> vtk output<br>
> ASCII<br>
> DATASET UNSTRUCTURED_GRID<br>
> POINTS 3 float<br>
> 1 1 1<br>
> 0 0 0<br>
> 0 0 1e-014<br>
> CELLS 3 6<br>
> 1 0<br>
> 1 1<br>
> 1 2<br>
> CELL_TYPES 3<br>
> 1<br>
> 1<br>
> 1<br>
> ----------<br>
> I use the Clean to Grid filter to merge the two close points, but after<br>
> that there remains three points. Can anyone tell me what this is?<br>
><br>
> Thanks,<br>
> yoshimi<br>
><br>
><br>
</div></div>> _______________________________________________<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>
> Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
</blockquote></div><br></div>