[vtkusers] Normals not passed through vtkVertexGlyphFilter

David Doria daviddoria+vtk at gmail.com
Thu Jun 24 11:20:49 EDT 2010


I don't think this has anything to do with vtkVertexGlyphFilter in
particular, but more to do with the PassData function:

output->GetPointData()->PassData(input->GetPointData());

If I do this:

polydata->SetNormals(normals);

then run the polydata through vtkVertexGlyphFilter, the normals
disappear all together.

If I instead

polydata->AddArray(normals);

the normals are preserved when the polydata is passed through
vtkVertexGlyphFilter.

It was my understanding that SetNormals calls AddArray and then flags
that array to be the "Normals" of the data set. Is this not correct?
How/should the normals set with SetNormals be passed with PassData?

Thanks,

David



More information about the vtkusers mailing list