[vtkusers] Texture Coordinates
Camille AFANGNIKE
afangnik at 9online.fr
Sat Jul 13 17:11:14 EDT 2002
Hi Everybody,
I send this message to know how to use vtkTCoords.
I read email on vtk forum :
..........................................
Where I had 2D texture coordinates:
>
>vtkTCoords *tcoords = vtkTCoords::New();
>tcoords->SetNumberOfTCoords(N);
>...
>float p[3];
>p[0]=x; p[1]=y;
>tcoords->SetTCoord(i,p);
>...
>
>I replaced with:
>
>vtkFloatArray *tcoords = vtkTCoords::New();
>tcoords->SetNumberOfComponents(2);
>tcoords->SetNumberOfTuples(N);
>...
>float p[2];
>p[0]=x; p[1]=y;
>tcoords->SetTuple(i,p);
>......................................................
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
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...?
I don't want to reuse the imagedata i used the first time to create my 2D texture in the vtk file.
Thanks for your help !
Camille AFANGNIKE (from Pessac / France)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020713/8eb3f351/attachment.htm>
More information about the vtkusers
mailing list