[vtkusers] VTK7.1: render points as spheres does not work when coloring by cell data
ken.martin at kitware.com
Thu Nov 10 15:38:55 EST 2016
Ahh OK I got it, that should definitely work. I'll take a look at it.
Thanks! - 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
> 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
> 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
> scalar on the cell data? Is this expected behavior?
> The example was build with VTK7.1rc2.
> View this message in context: http://vtk.1045678.n5.nabble.
> 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/
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
Ken Martin PhD
Chairman & CFO
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...
More information about the vtkusers