WHat is the type of scalar array? If it's not an unsigned char array with 3 or 4 components, VTK will use a lookuptable to map the scalar to colors.
Utkarsh On Fri, Sep 13, 2013 at 8:52 AM, 庞庆源 <pangqingyuan1...@gmail.com> wrote: > > I write a simple reader,inheriting from vtkPolyDataAlgorithm.But > SetScalars() cannot color the plane.When I test it use general vtk > polydata->mapper->actor->renderer->renderwindow,I can see different color > at different point.Does someone know the reason?Thank you. > -- > 庞庆源 <pangqingyuan1...@gmail.com> > > _______________________________________________ > 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 > >
_______________________________________________ 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