[vtkusers] Color a vtkcell

awabi aw.ndaw at gmail.com
Tue Jan 12 17:27:01 EST 2010


Thank you.

Is it possible via a vtkcellarray?

awa.

dpai wrote:
> 
> Yes you can
> 
> Add Attributes as follows PolyData->GetCellData()->SetScalars()
> and put a lookupTable with the required colors
> 
> On Tue, Jan 12, 2010 at 5:03 PM, awabi <aw.ndaw at gmail.com> wrote:
> 
>>
>> Hello,
>>
>> I'd like to know if it is possible with vtk to color the faces of a
>> vtkpolydata as I want. For example I have a cube and I'd like to color
>> the
>> faces differently.
>>
>> Thank you,
>>
>> Awa
>> --
>> View this message in context:
>> http://old.nabble.com/Color-a-vtkcell-tp27135594p27135594.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
>>
> 
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: http://old.nabble.com/Color-a-vtkcell-tp27135594p27135949.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list