MantisBT - ParaView
View Issue Details
0009821ParaViewBugpublic2009-11-02 08:472010-02-22 20:17
David Doria 
Utkarsh Ayachit 
normalminoralways
closedwon't fix 
Development 
 
0009821: Color Array not automatically applied
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 );

, I have to go to "display" and change "Color by:" to
"Colors" and then uncheck "Map scalars". I think these colors should be applied automatically too.

Attached is the cpp file that produced the also attached vtp file.
No tags attached.
? ColorArray.vtp (2,612) 2009-11-02 08:47
https://www.vtk.org/Bug/file/7619/ColorArray.vtp
cxx ColoredPoints.cxx (1,720) 2009-11-02 08:48
https://www.vtk.org/Bug/file/7620/ColoredPoints.cxx
Issue History
2009-11-02 08:47David DoriaNew Issue
2009-11-02 08:47David DoriaFile Added: ColorArray.vtp
2009-11-02 08:48David DoriaFile Added: ColoredPoints.cxx
2010-02-15 14:02Utkarsh AyachitNote Added: 0019530
2010-02-15 14:02Utkarsh AyachitStatusbacklog => @80@
2010-02-15 14:02Utkarsh AyachitResolutionopen => won't fix
2010-02-15 14:02Utkarsh AyachitAssigned To => Utkarsh Ayachit
2010-02-22 20:17Alan ScottNote Added: 0019589
2010-02-22 20:17Alan ScottStatus@80@ => closed

Notes
(0019530)
Utkarsh Ayachit   
2010-02-15 14:02   
By design.
(0019589)
Alan Scott   
2010-02-22 20:17   
If Utkarsh says so, it is good enough for me!