[vtkusers] Using two different colors on top/bottom cell sides

Alexandre DARRAU alex.darrau at gmail.com
Tue Dec 10 16:05:07 EST 2013


Just to be sure i understood.  To perform that,  will I need to define 2
UnstructuredGrid ? I will have 2 cells at the same position with 2
different color, do you think it will work ?


2013/12/10 Bill Lorensen <bill.lorensen at gmail.com>

> Great. So I think you need two datasets. Sounds like a cool application.
>
>
>
>
> On Tue, Dec 10, 2013 at 3:46 PM, Alexandre DARRAU <alex.darrau at gmail.com>wrote:
>
>> Sure. What I am currently doing is generating the geometrical model of my
>> thermal system.  I used an UnstructuredGrid object to perform it. Each cell
>> corresponds to a thermal node with material and thermal coating properties.
>>
>> Most often, the thermal coating is the same on the front face and the
>> back face of a cell. Now, i would like to take into account that a thermal
>> coating (represented with red color) can be applied on the front face,
>> another one the backface (blue color) and visualize it on VTK (You can
>> image a Satellite wall with MLI on a side and Carbon on the other side).
>>
>> Thank you for your help and your answer
>>
>>
>>
>> 2013/12/10 Bill Lorensen <bill.lorensen at gmail.com>
>>
>>> VTK cannot do this with one dataset. You can specify a backface
>>> property, but that would only permit one color for the front and back of
>>> the dataset.
>>>
>>> It seems you want a different colormap for each side of the data. The
>>> only way to do this would be to have two separte datasets.
>>>
>>> The image you posted is very simple. Can you describe your real-world
>>> application?
>>>
>>>
>>>
>>> On Tue, Dec 10, 2013 at 3:14 PM, Alexandre DARRAU <alex.darrau at gmail.com
>>> > wrote:
>>>
>>>> This is the first time i am trying to insert a picture, i hope it will
>>>> work:
>>>>
>>>> [image: Images intégrées 1]
>>>>
>>>>
>>>> Does this image help ?
>>>>
>>>> Thank you
>>>>
>>>>
>>>> 2013/12/10 Bill Lorensen <bill.lorensen at gmail.com>
>>>>
>>>>> Can you show an image that illustrates what you want?
>>>>>
>>>>>
>>>>> On Tue, Dec 10, 2013 at 2:42 PM, Alexandre DARRAU <
>>>>> alex.darrau at gmail.com> wrote:
>>>>> > Thanks for your reply. This is not what i mean. I would like to
>>>>> color the
>>>>> > cell front side in red and the cell back side in blue, is it
>>>>> possible ?
>>>>> >
>>>>> >
>>>>> > 2013/12/10 Bill Lorensen <bill.lorensen at gmail.com>
>>>>> >>
>>>>> >> If you mean a band of red and a band of blue (not a conitnuous
>>>>> >> transition), then split the each cell into two cells, color one red,
>>>>> >> the other blue.
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> On Tue, Dec 10, 2013 at 1:28 PM, daralex <alex.darrau at gmail.com>
>>>>> wrote:
>>>>> >> > Dear all,
>>>>> >> >
>>>>> >> > I would have a question regarding VTK.
>>>>> >> > I have an unstructured grid where i am trying to plot a
>>>>> temperature
>>>>> >> > distribution on. I manage to get one color per cell suing lookup
>>>>> table
>>>>> >> > but i
>>>>> >> > would like to color the top of one cell in blue and the bottom in
>>>>> red,
>>>>> >> > do
>>>>> >> > you know if it is possible using VTK ? Can you explain me how to
>>>>> deal
>>>>> >> > with
>>>>> >> > it ?
>>>>> >> >
>>>>> >> > Thank you in advance for your answer
>>>>> >> >
>>>>> >> > Alex
>>>>> >> >
>>>>> >> >
>>>>> >> >
>>>>> >> > --
>>>>> >> > View this message in context:
>>>>> >> >
>>>>> http://vtk.1045678.n5.nabble.com/Using-two-different-colors-on-top-bottom-cell-sides-tp5724946.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
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> --
>>>>> >> Unpaid intern in BillsBasement at noware dot com
>>>>> >
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Unpaid intern in BillsBasement at noware dot com
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Unpaid intern in BillsBasement at noware dot com
>>>
>>
>>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131210/65eb9abc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 10609 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131210/65eb9abc/attachment.png>


More information about the vtkusers mailing list