[Paraview] Merging very close Points
kenichiro yoshimi
rccm.kyoshimi at gmail.com
Mon Sep 2 04:06:37 EDT 2013
Thank you Sven,
I follow your advice, in vtkCleanUnstructuredGrid, I replace vtkMergePoints
locator by vtkPointLocator. Hereby, I am able to specify the tolerance to
merge points, and get the desired results.
Thank you very much.
yoshimi
2013/9/2 Sven Buijssen <sven.buijssen at tu-dortmund.de>
> Hi Yoshimi,
>
> The Clean to Grid filter internally invokes vtkCleanUnstructuredGrid
> which can merge duplicate points, but they need to have coincident
> coordinates. In contrast, very old versions of ParaView also merged very
> close points, but that is not true any more, see closed issue
> http://www.paraview.org/Bug/view.php?id=9728
>
> It is actually very simple to derive a (c++-based) plugin from
> vtkCleanUnstructuredGrid that provides a filter that merges points
> within a distance of less than a (configurable) fraction of the length
> of the diagonal of the bounding box of the data set. But in order to be
> able to use said plugin you would need to compile ParaView from source.
> Not sure whether you would want to go to such lengths.
>
> Sven
>
>
> kenichiro yoshimi wrote, On 02.09.2013 07:47:
> > Hi all,
> >
> > I want to merge the very close (or coincident) points in PV. For
> > instance, there are very close two points and one point apart from them,
> > i.e., an ASCII VTK File:
> > ----------
> > vtk output
> > ASCII
> > DATASET UNSTRUCTURED_GRID
> > POINTS 3 float
> > 1 1 1
> > 0 0 0
> > 0 0 1e-014
> > CELLS 3 6
> > 1 0
> > 1 1
> > 1 2
> > CELL_TYPES 3
> > 1
> > 1
> > 1
> > ----------
> > I use the Clean to Grid filter to merge the two close points, but after
> > that there remains three points. Can anyone tell me what this is?
> >
> > Thanks,
> > yoshimi
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130902/04bec66a/attachment.htm>
More information about the ParaView
mailing list