[vtkusers] VTK7.1: render points as spheres does not work when coloring by cell data

Ken Martin ken.martin at kitware.com
Wed Nov 16 06:10:24 EST 2016


Thanks, this should be fixed in VTK master now.

Thanks again!
Ken

On Thu, Nov 10, 2016 at 3:10 PM, lp <lotterluke at gmail.com> wrote:

> Hello Ken,
>
> Thank you for your swift reply. Let me apologize for not being clear enough
> in my initial post. I will try to clarify.
>
> I do not want to color the vertices by cell data. I just want to turn on
> the
> tubes for the cell edges and the spheres for the vertices, while the cells
> are colored by values in a cell data array. Both cell edges and vertex
> spheres should just be colored by the constant color set with SetEdgeColor
> and SetVertexColor on the actor property.
>
> In the example that I send before, the sphere has a double array added to
> the cell data and set as the active scalar. The mapper is set to
> ScalarModeToUseCellData. On the property of the actor both
> RenderLinesAsTubesOn and RenderPointsAsSpheresOn are set. However, only the
> tubes are shown, the spheres for the vertices are not.
>
> If I comment out line 36
>
> sphereSource->GetOutput()->GetCellData()->SetActiveScalars("
> doubleValues");
>
> then both tubes and vertex spheres are shown, but of course the cells are
> not colored by their data array.
>
> So, I wonder why is the rendering of the vertex spheres linked to the
> active
> scalar on the cell data? Is this expected behavior?
>
> The example was build with VTK7.1rc2.
>
> Regards,
> Lukas
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.
> com/VTK7-1-render-points-as-spheres-does-not-work-when-
> coloring-by-cell-data-tp5741121p5741133.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
>



-- 
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161116/ee721cf9/attachment.html>


More information about the vtkusers mailing list