[vtkusers] Coloring Triangles...
Subin
supersub at ccea.zju.edu.cn
Tue Oct 28 11:02:22 EST 2003
try this:
triangleActor->GetProperty()->SetColor(1,0,0);
----------------------------
good luck !
subin ^_^
----- Original Message -----
From: "Nick Ton" <nton at photon.com>
To: "vtk users" <vtkusers at public.kitware.com>
Sent: Tuesday, October 28, 2003 6:07 AM
Subject: [vtkusers] Coloring Triangles...
>
>
> 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