[vtkusers] Coloring cells of a 3D polygon

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Tue Feb 20 02:33:22 EST 2001

>table in a similar way, so I believe my problem is setting the scalars to
>the cells in the cube.
>Please help. See code below.

>       cubeMapper.SetScalarModeToUseCellData();
>       cubeMapper.ScalarVisibilityOn();
>       cubeMapper.SetInput(cubeSource.GetOutput());
>       cubeMapper.SetLookupTable(lut);
>       cubeActor.SetMapper(cubeMapper);
>       renPanel.setActor(cubeActor);

Try adding CubeMapper->SetScalarRange(0,6); because you've defined your 
scalars that way. 

More information about the vtkusers mailing list