<div dir="ltr"><div><div>Thanks for the heads up.<br><br></div>But i haveĀ  0 ~ many points in each triangle (cell) not just one and a scalar is associated with each point.<br><br></div>Really appreciate the follow up.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Regards,<br>P Tharun Kumar<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Feb 16, 2017 at 11:50 PM, Cory Quammen-2 [via VTK] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5742209&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        I see, thanks for the explanation. In VTK, we call that kind of data
<br>cell-associated data, or just cell data.
<br><br>In the vtkMapper you use, you'll want to call
<br><br>mapper-><wbr>SetScalarModeToUseCellData();
<br><br>It may be helpful to consult this example:
<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/AssignColorsFromLUT" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK/<wbr>Examples/Cxx/Visualization/<wbr>AssignColorsFromLUT</a><br><br>- Cory
<br><span class=""><br>On Thu, Feb 16, 2017 at 9:40 AM, Tharun <<a href="http:///user/SendEmail.jtp?type=node&node=5742208&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:
</span><div class="m_7528211085156079824shrinkable-quote"><span class=""><div class='shrinkable-quote'><br>> sorry for not being clear.
<br>>
<br>> The polydata consists of triangles. I mean those points are inside triangles
<br>> of mesh not the vertices of triangles.
<br>>
<br>> Hope I am clear.
<br>>
<br>> Regards,
<br>> P Tharun Kumar
<br>>
</div></span>> On Thu, Feb 16, 2017 at 11:04 PM, Cory Quammen-2 [via VTK] <[hidden email]>
<br><div><div class="h5">> wrote:
<div class='shrinkable-quote'><br>>>
<br>>> Okay, I'm curious. What is the difference between points on the mesh
<br>>> and vertices?
<br>>>
<br>>> On Wed, Feb 15, 2017 at 9:28 PM, Tharun <[hidden email]> wrote:
<br>>>
<br>>> > Thank you for the prompt reply.
<br>>> >
<br>>> > Unfortunately no. I have scalar values associated with points(not
<br>>> > vertices)
<br>>> > on the mesh. Where as in your example, color or scalar value is
<br>>> > associated
<br>>> > with vertices.
<br>>> >
<br>>> >
<br>>> >
<br>>> > --
<br>>> > View this message in context:
<br>>> > <a href="http://vtk.1045678.n5.nabble.com/Color-actor-based-on-scalars-of-points-on-mesh-not-vertices-tp5742197p5742199.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/Color-actor-based-on-<wbr>scalars-of-points-on-mesh-not-<wbr>vertices-tp5742197p5742199.<wbr>html</a><br>>> > Sent from the VTK - Users mailing list archive at Nabble.com.
<br>>> > ______________________________<wbr>_________________
<br>>>
<br>>> > Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br>>> >
<br>>> > Visit other Kitware open-source projects at
<br>>> > <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>>> >
<br>>> > Please keep messages on-topic and check the VTK FAQ at:
<br>>> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>>> >
<br>>> > Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="nofollow" link="external" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>>> >
<br>>> > Follow this link to subscribe/unsubscribe:
<br>>> > <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>>
<br>>
<br>>
<br>> --
<br>> Cory Quammen
<br>> Staff R&D Engineer
<br>> Kitware, Inc.
<br>> ______________________________<wbr>_________________
<br>> Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br>>
<br>> Visit other Kitware open-source projects at
<br>> <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>>
<br>> Please keep messages on-topic and check the VTK FAQ at:
<br>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>>
<br>> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="nofollow" link="external" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>>
<br>> Follow this link to subscribe/unsubscribe:
<br>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>>
<br>>
<br>> ______________________________<wbr>__
<br>> If you reply to this email, your message will be added to the discussion
<br>> below:
<br>> <a href="http://vtk.1045678.n5.nabble.com/Color-actor-based-on-scalars-of-points-on-mesh-not-vertices-tp5742197p5742205.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/Color-actor-based-on-<wbr>scalars-of-points-on-mesh-not-<wbr>vertices-tp5742197p5742205.<wbr>html</a><br>> To unsubscribe from Color actor based on scalars of points on mesh (not
<br>> vertices), click here.
<br>> NAML
<br>>
<br>>
</div></div></div>> ______________________________<wbr>__
<br>> View this message in context: Re: Color actor based on scalars of points on
<br>> mesh (not vertices)
<br>>
<br><span class="">> Sent from the VTK - Users mailing list archive at Nabble.com.
<div class='shrinkable-quote'><br>>
<br>> ______________________________<wbr>_________________
<br>> Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br>>
<br>> Visit other Kitware open-source projects at
<br>> <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>>
<br>> Please keep messages on-topic and check the VTK FAQ at:
<br>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>>
<br>> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="nofollow" link="external" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>>
<br>> Follow this link to subscribe/unsubscribe:
<br>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>>
</span></div><span class=""></div><br><br>-- 
<br>Cory Quammen
<br>Staff R&D Engineer
<br>Kitware, Inc.
<br>______________________________<wbr>_________________
<br>Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br><br>Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="nofollow" link="external" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>

        
        
        
        <br>
        <br>
        <hr size="1" noshade color="#cccccc">
        </span><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span class="">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span><a href="http://vtk.1045678.n5.nabble.com/Color-actor-based-on-scalars-of-points-on-mesh-not-vertices-tp5742197p5742208.html" target="_blank" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.<wbr>com/Color-actor-based-on-<wbr>scalars-of-points-on-mesh-not-<wbr>vertices-tp5742197p5742208.<wbr>html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Color actor based on scalars of points on mesh (not vertices), <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="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" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Color-actor-based-on-scalars-of-points-on-mesh-not-vertices-tp5742197p5742209.html">Re: Color actor based on scalars of points on mesh (not vertices)</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>