[vtkusers] defining color for backfaces of a polygon mesh in vtk.

Karthik Krishnan karthik.krishnan at kitware.com
Mon Jun 16 20:41:12 EDT 2008


Use vtkActor::SetBackfaceProperty( .. ) to set a different color on
the backfaces.

--
karthik

On Sun, Jun 15, 2008 at 11:14 PM, Rishabh Kapoor
<kapoorrishabh at gmail.com> wrote:
>
> hi all,
>  I have a problem. How can I define different colors to backfaces of a
> polygon. I have defined a ambient, diffuse color of a polygon mesh. But I
> want to assign a different color to backfaces of this polygon mesh.
> When backfaces culling is switched on then the backfaces are not rendered
> when the camera faces the back of the polygon mesh. Please tell me how can I
> solve this problem of mine.
> Regards,
>  Rishabh Kapoor
> --
> Rishabh Kapoor
> Medical Physics Consultant
> 202 Ashok Bhavan
> 93 Nehru Place
> New Delhi 110019
> Ph. +91-11-26423266, +91-11-26420136.
> Mobile: 9910772490
> EMail: tsgintegrations at gmail.com
> Web: www.tsgintegrations.com
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the 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