Hi Tim, many thanks<br>I&#39;ve read something similar in another thread. I&#39;ve been trying to add texture coords in a simple example using vtkjpegreader, but I don&#39;t get any good results. What I do is to add Tcoords to a polydata, then map the polydata whit a Polydatamapper and then add the mapper and a texture to the actor. Is that correct?
<br>Also I would like to keep the question of my first post hot: Is it possible to change Polydata point values in a vtkTextureMapToPlane but keeping the rest of the information? <br><br><div><span class="gmail_quote">On 9/3/07, 
<b class="gmail_sendername">Tim Hutton</b> &lt;<a href="mailto:tim.hutton@gmail.com">tim.hutton@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Godofredo,<br><br>VTK doesn&#39;t support per-face texturing natively. You can get the same<br>effect by splitting the vertices - duplicating them so that at a<br>junction between e.g. 6 triangles, there are 6 vertices, all with the
<br>same spatial coordinates but different texture coordinates.<br><br>If you look in vtkOBJReader that&#39;s the approach it uses where<br>necessary, to read-in the OBJ format (which does support per-face<br>textures).<br>
<br>To manipulate the texture coordinates, just use<br>my_polydata-&gt;GetPointData()-&gt;GetTCoords().<br><br>Tim<br><br>On 03/09/07, Godofredo &lt;<a href="mailto:godofredoiii@gmail.com">godofredoiii@gmail.com</a>&gt; wrote:
<br>&gt;<br>&gt; Sorry for replying myself but I&#39;m frustrated. Another question I have: Is it<br>&gt; possible to change Polydata point values in a vtkTextureMapToPlane? I&#39;ve<br>&gt; tried doing:<br>&gt;&nbsp;&nbsp;vtkTextureMapToPlane *planeMap = vtkTextureMapToPlane::New();
<br>&gt; planeMap-&gt;GetPolyDataOutput()-&gt;SetPoints(vPoints);<br>&gt; Where vPoints is the new array of point values.<br>&gt;<br>&gt; But this doesn&#39;t seem to work at all.<br>&gt;<br>&gt;<br>&gt; Godofredo wrote:<br>
&gt; &gt;<br>&gt; &gt; Hi. I&#39;m trying to add texture to a region of a 3d polydata. The texture is<br>&gt; &gt; a .jpeg file and the polydata is a triangulated point cloud. I would like<br>&gt; &gt; to know if it&#39;s possible to manually assign a region of the .jpeg image to
<br>&gt; &gt; each triangle. I don&#39;t know if this can be done with the tcoords field.<br>&gt; &gt; Any guidance will be apreciated as I&#39;m a bit stuck. Many thanks in<br>&gt; &gt; andvance<br>&gt; &gt;<br>&gt;<br>&gt; --
<br>&gt; View this message in context: <a href="http://www.nabble.com/Per-triangle-texturing.-Please-help%21%21-tf4371233.html#a12460175">http://www.nabble.com/Per-triangle-texturing.-Please-help%21%21-tf4371233.html#a12460175
</a><br>&gt; Sent from the VTK - Users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>&gt;<br>&gt; _______________________________________________<br>&gt; This is the private VTK discussion list.<br>
&gt; Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br><br><br>--<br>Tim Hutton - <a href="http://www.sq3.org.uk">http://www.sq3.org.uk</a><br><br>Take the Organic Builder challenge -<br><a href="http://www.sq3.org.uk/Evolution/Squirm3/OrganicBuilder/">
http://www.sq3.org.uk/Evolution/Squirm3/OrganicBuilder/</a><br></blockquote></div><br>