[vtkusers] self.headActor.GetProperty().SetColor(R,G,B)

Jothy jothybasu at gmail.com
Fri Oct 22 11:04:37 EDT 2010


There must be something wrong in your pipeline.

Unless you post the entire pipeline, we can't help you much!

Jothy

On Fri, Oct 22, 2010 at 3:59 PM, aneuryzma <patrick.diviacco at gmail.com>wrote:

>
> I'm using VTK and changing color to my model
>
> self.headActor.GetProperty().SetColor(R,G,B)
>
> However it seems the color is just added instead of replace.
> As result, when I add multiple colors the model becomes white.
>
> How can I change the color removing the previous one and just adding the
> last one ?
>
> thanks
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/self-headActor-GetProperty-SetColor-R-G-B-tp3232393p3232393.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101022/7114f05d/attachment.htm>


More information about the vtkusers mailing list