[vtkusers] Color actor based on scalars of points on mesh (not vertices)

Cory Quammen cory.quammen at kitware.com
Thu Feb 16 09:50:04 EST 2017


I see, thanks for the explanation. In VTK, we call that kind of data
cell-associated data, or just cell data.

In the vtkMapper you use, you'll want to call

mapper->SetScalarModeToUseCellData();

It may be helpful to consult this example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/AssignColorsFromLUT

- Cory

On Thu, Feb 16, 2017 at 9:40 AM, Tharun <tharun160190 at gmail.com> wrote:
> sorry for not being clear.
>
> The polydata consists of triangles. I mean those points are inside triangles
> of mesh not the vertices of triangles.
>
> Hope I am clear.
>
> Regards,
> P Tharun Kumar
>
> On Thu, Feb 16, 2017 at 11:04 PM, Cory Quammen-2 [via VTK] <[hidden email]>
> wrote:
>>
>> Okay, I'm curious. What is the difference between points on the mesh
>> and vertices?
>>
>> On Wed, Feb 15, 2017 at 9:28 PM, Tharun <[hidden email]> wrote:
>>
>> > Thank you for the prompt reply.
>> >
>> > Unfortunately no. I have scalar values associated with points(not
>> > vertices)
>> > on the mesh. Where as in your example, color or scalar value is
>> > associated
>> > with vertices.
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> > http://vtk.1045678.n5.nabble.com/Color-actor-based-on-scalars-of-points-on-mesh-not-vertices-tp5742197p5742199.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
>> >
>> > Search the list archives at: http://markmail.org/search/?q=vtkusers
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
> --
> Cory Quammen
> Staff R&D Engineer
> Kitware, Inc.
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://vtk.1045678.n5.nabble.com/Color-actor-based-on-scalars-of-points-on-mesh-not-vertices-tp5742197p5742205.html
> To unsubscribe from Color actor based on scalars of points on mesh (not
> vertices), click here.
> NAML
>
>
> ________________________________
> View this message in context: Re: Color actor based on scalars of points on
> mesh (not vertices)
>
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.


More information about the vtkusers mailing list