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

Tharun tharun160190 at gmail.com
Thu Feb 16 10:05:33 EST 2017


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] <
ml-node+s1045678n5742208h24 at n5.nabble.com> 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/AssignColorsFromLUT
>
> - 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-
> 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.
> _______________________________________________
> 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-tp5742197p5742208.html
> To unsubscribe from Color actor based on scalars of points on mesh (not
> vertices), click here
> <http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5742197&code=dGhhcnVuMTYwMTkwQGdtYWlsLmNvbXw1NzQyMTk3fC00NDI1NDgwODA=>
> .
> 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: 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 at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170216/e2f136f2/attachment.html>


More information about the vtkusers mailing list