<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<DIV><FONT size=2>Hi Everybody,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I send this message to know how to use vtkTCoords.
</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I read email on vtk forum :</FONT></DIV>
<DIV><FONT size=2>..........................................</FONT></DIV>
<DIV><FONT size=2> Where I had 2D texture
coordinates:<BR>><BR>>vtkTCoords *tcoords =
vtkTCoords::New();<BR>>tcoords->SetNumberOfTCoords(N);<BR>>...<BR>>float
p[3];<BR>>p[0]=x;
p[1]=y;<BR>>tcoords->SetTCoord(i,p);<BR>>...<BR>><BR>>I replaced
with:<BR>><BR>>vtkFloatArray *tcoords =
vtkTCoords::New();<BR>>tcoords->SetNumberOfComponents(2);<BR>>tcoords->SetNumberOfTuples(N);<BR>>...<BR>>float
p[2];<BR>>p[0]=x;
p[1]=y;<BR>>tcoords->SetTuple(i,p);<BR>>....</FONT><FONT
size=2>..................................................</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>In fact my problem is that i can't see the 2D texture i have
in my vtk file, after reading it. I don't know how to do with</FONT></DIV>
<DIV><FONT size=2>so i try to recreate a vtkTexture. Do you know how to exploit
texture data from a vtk file or could you tell me what to do with
vtkTCoords...?</FONT></DIV>
<DIV><FONT size=2>I don't want to reuse the imagedata i used the first time to
create my 2D texture in the vtk file.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks for your help !</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Camille AFANGNIKE (from Pessac / France)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV></FONT></DIV></BODY></HTML>