lp
2016-11-09 19:20:40 UTC
Hello,
I am playing around with the new feature in vtk7.1 to render edges and
vertices as tubes and spheres (as described in
https://blog.kitware.com/rendering-tubes-and-spheres-in-vtk/).
This is a very nice feature, but I have found one issue: When the mapper is
set to color by cellData (mapper->SetScalarModeToUseCellData()), only the
edges are shown as tubes but the spheres at the vertices are not rendered.
For SetScalarModeToUsePointData it works as expected (both, tubes and
spheres are rendered).
So my question: Is it possible to show the vertex spheres, when coloring by
cellData?
Example code (based on VTK Sphere example) attached.
Regards,
Lukas
CMakeLists.txt
<http://vtk.1045678.n5.nabble.com/file/n5741121/CMakeLists.txt>
Sphere.cxx <http://vtk.1045678.n5.nabble.com/file/n5741121/Sphere.cxx>
--
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-tp5741121.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
I am playing around with the new feature in vtk7.1 to render edges and
vertices as tubes and spheres (as described in
https://blog.kitware.com/rendering-tubes-and-spheres-in-vtk/).
This is a very nice feature, but I have found one issue: When the mapper is
set to color by cellData (mapper->SetScalarModeToUseCellData()), only the
edges are shown as tubes but the spheres at the vertices are not rendered.
For SetScalarModeToUsePointData it works as expected (both, tubes and
spheres are rendered).
So my question: Is it possible to show the vertex spheres, when coloring by
cellData?
Example code (based on VTK Sphere example) attached.
Regards,
Lukas
CMakeLists.txt
<http://vtk.1045678.n5.nabble.com/file/n5741121/CMakeLists.txt>
Sphere.cxx <http://vtk.1045678.n5.nabble.com/file/n5741121/Sphere.cxx>
--
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-tp5741121.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