[vtkusers] Re: simple question vtkCleanPolyData

Goodwin Lawlor goodwin.lawlor at ucd.ie
Wed Apr 19 08:48:23 EDT 2006


Janet Kim wrote:
> As and addendum to this question - if you are using
> vtkCleanPolyData and have SetScalars to set a vtkFloatArray
> to that polydata, how can you correspondingly clean the
> scalars as well?  When I had tried to clean the poly data,
> I found that my scalars remained the same, and consequently
> were all off.  Is there a way to do this?
> 
> janet

Hi Janet,

Which scalar do you keep though? If you have 5 coincident points all 
with different scalars values that get merged into one point, which 
scalar value do you associated with the final single point? Maybe an 
average, the first one in the point list, or the last one...

Goodwin




More information about the vtkusers mailing list