[Paraview] Automatic color application (AddArray vs SetScalars)

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Nov 2 07:23:31 EST 2009

I would think this should work as well. I  believe we had (at some
point) logic to detect any new arrays and use those for coloring when
a new filter is created. Feel free to add this to the bug tracker.


On Sat, Oct 31, 2009 at 7:52 AM, David Doria <daviddoria at gmail.com> wrote:
> If I add colors to a polydata using
> polydata->GetPointData()->SetScalars ( Colors );
> then open the polydata in Paraview, the colors are applied automatically.
> However, if I use
> polydata->GetPointData()->AddArray ( Colors );
> which is apparently (from the vtk-users list) the "new/correct" way to
> do this in VTK, I have to go to "display" and change "Color by:" to
> "Colors" and then uncheck "Map scalars". Is there a reason that colors
> added in this way are not applied automatically?
> Thanks,
> David
> _______________________________________________
> 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

More information about the ParaView mailing list