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

Bill Lorensen bill.lorensen at gmail.com
Thu Feb 16 10:23:19 EST 2017


Can you describe what you expect to see?

On Feb 16, 2017 10:05 AM, "Tharun" <tharun160190 at gmail.com> wrote:

> Thanks for the heads up.
>
> But i have  0 ~ many points in each triangle (cell) not just one and a
> scalar is associated with each point.
>
> Really appreciate the follow up.
>
> Regards,
> P Tharun Kumar
>
> On Thu, Feb 16, 2017 at 11:50 PM, Cory Quammen-2 [via VTK] <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5742209&i=0>> wrote:
>
>> 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/Assig
>> nColorsFromLUT
>>
>> - Cory
>>
>> On Thu, Feb 16, 2017 at 9:40 AM, Tharun <[hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=5742208&i=0>> 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-scalar
>> s-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-scalar
>> s-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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/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-scalar
> s-of-points-on-mesh-not-vertices-tp5742197p5742208.html
> To unsubscribe from Color actor based on scalars of points on mesh (not
> vertices), click here.
> NAML
> <http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
> ------------------------------
> View this message in context: Re: Color actor based on scalars of points
> on mesh (not vertices)
> <http://vtk.1045678.n5.nabble.com/Color-actor-based-on-scalars-of-points-on-mesh-not-vertices-tp5742197p5742209.html>
> Sent from the VTK - Users mailing list archive
> <http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170216/e7b386d3/attachment.html>


More information about the vtkusers mailing list