[Paraview] output->GetPointData()->SetScalars(pointScalars); No effect.

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Sep 13 09:45:59 EDT 2013


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, 庞庆源 <pangqingyuan1991 at 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.
> --
> 庞庆源 <pangqingyuan1991 at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130913/d9188e62/attachment.htm>


More information about the ParaView mailing list