Hello Andrea,<BR>&nbsp;<BR>what I described was how to get the texture coordinates. However, to get the actual RGB values I guess that you should not use the vtkTexture object but the output of your vtkPNGReader which is of type vtkImageData (derived from vtkDataSet again). You would sample your RGB values from these object by using the texture coordinates (which point into the "image").<BR>&nbsp;<BR>Do you know what "texture mapping" in computer graphics means? I think that would help you to understand how to obtain the data. May be you can find some introduction on the WWW. Your image is assumed to be&nbsp;one unit wide and one unit high. The 2D texture coordinates point into this image. The texture coordinate (0.5, 0.5) for example points into the center of the image. So you would obtain the texture coordinate from a specific point of your 3D model and use this coordinate to obtain the actual RGB value from your image.<BR>&nbsp;<BR>Hope that helps somehow. However, may be there is a simpler solution?<BR>&nbsp;<BR>Kind regards,<BR>Bjoern<BR>&nbsp;<BR><BR>----- Ursprüngliche Nachricht -----<BR>Von: Andrea Bottino &lt;andrea.bottino@polito.it&gt;<BR>Datum: Dienstag, 16. September 2008, 13:51<BR>Betreff: Re: [vtkusers] How to get texture values for a vertex?<BR>An: Björn Zehner &lt;bjoern.zehner@ufz.de&gt;<BR>Cc: vtkusers@vtk.org<BR><BR><BR><SPAN>
<P>
<TABLE>
<TBODY>
<TR>
<TD bgColor=#ffffff text="#000000">
<P><FONT face=Calibri><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>this works fine for getting the texture values. But then, how can I get the RGB values from the vtkTexture object? looks like there's no way to access the loaded texture<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>bets regards<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>a.<BR></FONT><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Björn Zehner wrote: 
<BLOCKQUOTE cite=mid:fbd332db1280.48cf8e50@ufz.de type="cite">Hi Andrea,<BR>&nbsp;<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>I am not very VTK professional an I have not tried this before. But from what I see vtkObjReader-&gt;GetOutput() returns a pointer to vtkPolyData. As vtkPolyData is derived from vtkDataSet you can call myVtkDataSet-&gt;GetPointData() which returns a pointer to your vtkPointData; As vtkPointData is derived from vtkDataSetAttributes you can call GetTCoords() which should return a vtkDataArray that contains your texture coordinates. So far the theory ..... if it works you have to try, and may be there is a simpler solution!<BR>&nbsp;<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Kind regards,<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Bjoern<BR><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>----- Ursprüngliche Nachricht -----<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Von: Andrea Bottino <A href="javascript:main.compose('new','t=andrea.bottino@polito.it')">&lt;andrea.bottino@polito.it&gt;</A><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Datum: Montag, 15. September 2008, 17:05<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Betreff: [vtkusers] How to get texture values for a vertex?<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>An: <A href="javascript:main.compose('new','t=vtkusers@vtk.org')">vtkusers@vtk.org</A><BR><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <SPAN><BR>
<P><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; 
<TABLE>
<TBODY>
<TR>
<TD bgColor=#ffffff text="#000000">
<P><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <FONT face=Calibri>Hi all,<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; I have an .obj model with an associated texture, and I need to access<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; vertex coordinates as well as their RGB values. However, I'm blocked on<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; the last point. Here's my code:<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; // loading the obj model &amp; texture<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; model = vtkOBJReader::New();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; model-&gt;SetFileName(filename);<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; if(readableFile(textureName))<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; {<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkPNGReader* png1 = vtkPNGReader::New();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; png1-&gt;SetFileName("train_02463_1.png");<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; texture = vtkTexture::New();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; texture-&gt;SetInputConnection(png1-&gt;GetOutputPort());<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; texture-&gt;InterpolateOn();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; }<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; // ...<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; // then I create the actor, and finally set the texture to the actor<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp; vtkActor* actor = vtkActor::New();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp; vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp; mapper-&gt;SetInput(model-&gt;GetOutput());<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp; actor-&gt;SetMapper(mapper);<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp; if(texture)<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; actor-&gt;SetTexture(texture);<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; Then, for accessing the (x,y,z) and (R,G,B) values for each model<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; vertex:<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; vtkPoints *inPts = model-&gt;GetOutput()-&gt;GetPoints();&nbsp; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; vtkIdType numPts = model-&gt;GetOutput()-&gt;GetNumberOfPoints();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; double x[3];<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; if (numPts &lt; 1)<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; {<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // vtkErrorMacro(&lt;&lt;"No vertices in the model!");<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; }<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; for (vtkIdType ptId=0; ptId &lt; numPts; ptId++)<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; {<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; &nbsp;&nbsp;&nbsp; inPts-&gt;GetPoint(ptId, x);<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; &nbsp;&nbsp;&nbsp; //cout &lt;&lt; ptId &lt;&lt; ") " &lt;&lt; x[0] &lt;&lt; ", "<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &lt;&lt; x[1] &lt;&lt; ", " &lt;&lt; x[2] &lt;&lt; endl;<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp;&nbsp; // getting texture values<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp;&nbsp; //&nbsp; --&gt; and I have no idea how to get these values...<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &nbsp; }&nbsp; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; best regards,<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; a.<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; </FONT><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; </P><PRE class=moz-signature cols="72"><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>--   &gt; &gt; Andrea Bottino  &gt; &gt; Politecnico di Torino, DAUIN  &gt; &gt; Corso Duca degli Abruzzi, 24  &gt; &gt; 10129 Torino ITALY  &gt; &gt; Tel +39 011 5647175 / Fax +39 011 5647099.  &gt; &gt; <A class=moz-txt-link-freetext href="http://www.polito.it/cgvg" target=1>http://www.polito.it/cgvg</A>  &gt; &gt; </PRE><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; </TD></TR></TBODY></TABLE><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; </P></SPAN><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; &gt; _______________________________________________<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; This is the private VTK discussion list.<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; Please keep messages on-topic. Check the FAQ at: <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; <A class=moz-txt-link-freetext href="http://www.vtk.org/Wiki/VTK_FAQFollow" target=1>http://www.vtk.org/Wiki/VTK_FAQFollow</A> this link to <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>&gt; subscribe/unsubscribe:<A class=moz-txt-link-freetext href="http://www.vtk.org/mailman/listinfo/vtkusers" target=1>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>------------------------------------------------------------------------- <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Dr. Bjoern Zehner <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>UFZ Centre for Environmental Research Leipzig-Halle <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Permoserstrasse 15 <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>04318 Leipzig <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Germany <BR><A class=moz-txt-link-freetext href="http://www.ufz.de/index.php?en=5673" target=1><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>http://www.ufz.de/index.php?en=5673</A> <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Tel: ++49 (341) 235 1979 <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Fax: ++49 (341) 235 1939<BR><BR><PRE wrap=""><HR width="90%" SIZE=4><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>  &gt;   &gt; No virus found in this incoming message.  &gt; Checked by AVG - <A class=moz-txt-link-freetext href="http://www.avg.com/" target=1>http://www.avg.com</A>   &gt; Version: 8.0.169 / Virus Database: 270.6.21/1672 - Release Date: 15/09/2008 9.21  &gt;   &gt;   </PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="72"><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>--   &gt; Andrea Bottino  &gt; Politecnico di Torino, DAUIN  &gt; Corso Duca degli Abruzzi, 24  &gt; 10129 Torino ITALY  &gt; Tel +39 011 5647175 / Fax +39 011 5647099.  &gt; <A class=moz-txt-link-freetext href="http://www.polito.it/cgvg" target=1>http://www.polito.it/cgvg</A>  </PRE></TD></TR></TBODY></TABLE></SPAN></P><BR><BR>------------------------------------------------------------------------- <BR>Dr. Bjoern Zehner <BR>UFZ Centre for Environmental Research Leipzig-Halle <BR>Permoserstrasse 15 <BR>04318 Leipzig <BR>Germany <BR>http://www.ufz.de/index.php?en=5673 <BR>Tel: ++49 (341) 235 1979 <BR>Fax: ++49 (341) 235 1939<BR><BR>