[vtkusers] How to get color of pixel(or position) on colored polydata

Tharun tharun160190 at gmail.com
Tue Apr 25 21:18:42 EDT 2017


Thank you for the heads up.

I do know how to pick a position. But, i want to know the value of color at
a particular position. My actor consists of triangles and I can find
triangle picked. My current workflow is

1) Find triangle picked
2) Find Barycentric coordinates of position picked in the triangle.
3) Interpolate color of position from the colors of vertices of triangle
using Barycentric coordinates.

But, the color calculate is wrong at times.

I found that, in the actor I created, color inside triangle is interpolated
per pixel basis. But, I have no idea how is that done.




--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-get-color-of-pixel-or-position-on-colored-polydata-tp5742972p5742982.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list