<div dir="ltr">I have figured it out. Since my world coordinates are in meters from the center of the earth, I used vtkWorldPointPicker to get the world coordinates and then convert it to Latitude and Longitude using vtkGlobeSource::ComputeLatitudeLongitude. I then use an algorithm to calculate the distance in meters and bearing in degrees from a known point to interpolate to my image data coordinates.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 15, 2016 at 8:17 PM, Donny Zimmerman <span dir="ltr"><<a href="mailto:zmanvortex@gmail.com" target="_blank">zmanvortex@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am using vtk to texture polygons (triangles). I use a single texture and calculate what area of the texture is mapped to each polygon and then assign the correct u,v texture coordinates to the polygon points.<div><br></div><div>Using a spot that is picked on the textured polygon, I need to find the coordinates of the 2D vtkImageData (x,y) that was used to create the texture. I am having trouble wrapping my head around a way to do this.<div><br></div><div>I am looking at using vtkWorldPointPicker, reverse my transformation to get the pre-transformed world coordinate, and then use my u,v texture coordinate calculation to find the x,y coordinate of the vtkImageData.</div><div><br></div><div>I can't use the nearest polydata point that was picked because there are only 3 per polydata which would be at the edge of the texture.</div><div><br></div><div>Is there an easier solution?</div><div><br></div><div>Thanks.<br><div><br></div><div><br></div></div></div></div>
</blockquote></div><br></div>