[vtk-developers] vtkCleanPolyData and vtkQuantizePolyDataPoints don't work on points only?

Biddiscombe, John A. biddisco at cscs.ch
Mon Nov 28 14:38:28 EST 2011


The reason it's done this way is because the purpose of CleanPolyData was to take the input polygons and tidy them up. One of the operations is removing unused points. QuantizePolyDataPoints does the same, but using quantization. 

A dataset which has no cells, gets cleaned up completely and this is the intended behaviour. It cleans to null effectively

Rather than create a new class, one solution would be to add an option which is
"Leave unused points untouched"

Thus, shared points would be merged, degenerate triangles collapsed etc, but points unused by any cells would be passed through.

Actually, it ought to be
"Operate on all points, even unused ones", but you'd need to do a two pass check to pick up any unused ones after all cells were done.

JB

-----Original Message-----
From: vtk-developers-bounces at vtk.org [mailto:vtk-developers-bounces at vtk.org] On Behalf Of David Doria
Sent: 28 November 2011 19:33
Cc: VTK Developers
Subject: Re: [vtk-developers] vtkCleanPolyData and vtkQuantizePolyDataPoints don't work on points only?

On Mon, Nov 28, 2011 at 11:25 AM, Will Schroeder <will.schroeder at kitware.com> wrote:
> David-
> I believe the original intention was to remove degenerate cells (i.e., 
> clean them as in vtkCleanPolyData and its subclass), and remove points 
> unused by any cell. Hence you need to mark "used" points by 
> associating them with a vertex (or other cell).
> A new class or mode to do what you want could be added pretty quickly 
> I'm sure.
> W

Thanks Will. I added a note in the Caveats sections of these two files that hopefully clarifies this point:

http://review.source.kitware.com/#change,3379

David
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers




More information about the vtk-developers mailing list