[vtkusers] extract texture color from a vertex
piccima at gmail.com
Thu Dec 18 11:19:47 EST 2014
I want to get the texture value from a cell!
I have the cellid as result of intersectWithLine.
After I get the list of vertices of the cell:
vtkIdList* nghList = vtkIdList::New();
I iterate through the points in order to get their texture coordinates
and interpolate them in the intersection position.
Then with the (interpolated) texture coordinates, access the texture
image to get the RGB point color!
Is there a method faster than that?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers