[vtkusers] Iso band coloring

Bill Lorensen bill.lorensen at gmail.com
Thu May 13 08:48:46 EDT 2010


Try adding,
colorMapper->SetScalarRange( range[0], range[1]);

I think you'll like it,

Bill

On Thu, May 13, 2010 at 8:36 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
> If you run this:
>
> http://www.vtk.org/Wiki/VTK/Examples/PolyData/PolyDataIsoLines
>
> On this input: http://rpi.edu/~doriad/VTK_List/Isobands/eight.vtp
>
> The output looks like this:
> http://rpi.edu/~doriad/VTK_List/Isobands/contours.jpg
>
> The contour edges (white lines) are correct, but the coloring is not
> what I am looking for. It starts out red, and moves to blue too
> quickly - it seems like since the bands are equally spaced, the colors
> should continue to be equally spaced across the entire object. Can
> anyone see what I am doing wrong?
>
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list