[vtkusers] Coloring Triangles...

Roni Choudhury aichoudh at midway.uchicago.edu
Mon Oct 27 19:41:41 EST 2003


Try setting the shading model to "FLAT".  It's set to gouraud shading by
default.

roni

On Mon, 27 Oct 2003, Nick Ton wrote:

> 
> 
> Hi,
> 
> I was wondering if there is another way of coloring triangles?
> I've been able to use SetScalars function to set the scalar value at
> each vertices of a triangle. But this colors the triangles base on the
> vertices.
> Is there a way to assign a color value to the cell (triangle pixel)?
> Perhaps,
> I've misunderstood a concept? Could anyone provide an explanation?
> 
> Thanks,
> Nick
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 




More information about the vtkusers mailing list