<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Annie Chen wrote:
<blockquote cite="midae678450050316021478f213d6@mail.gmail.com"
 type="cite">
  <pre wrap="">I'm using source file (.vtk) to generate a 3D shape which is
non-standard, and I want to put up a texture in .jpg format on the
shape.  I tried to used the vtkActor, but apparently it didn't work.
So I wonder if anyone could possibily give some hint on it. Even some
links or which class object I should use.
  </pre>
</blockquote>
Use vtkActor::SetTexture...<br>
<br>
See help for actor and texture classes at:<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkActor.html">http://www.vtk.org/doc/nightly/html/classvtkActor.html</a><br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkTexture.html">http://www.vtk.org/doc/nightly/html/classvtkTexture.html</a><br>
<br>
The TCL example script <b>VTK/Examples/VisualizationAlgorithms/Tcl/GenerateTextureCoords.tcl</b>
shows one way to use SetTexture.<br>
<br>
<br>
Cheers,<br>
David Cole<br>
<br>
</body>
</html>