Godofredo,<br><br>To my knowledge, there is no simple way to do what you want.&nbsp; <br><br>1 - For mapping a texture to part of an image, the easiest course is to turn mirroring off on the texture so that instead of replicating the image, the texturer extends the boundary of the image to the rest of the plane.&nbsp; Then put a one pixel border around your texture jpegs that is the background color you desire on the untextured regions of the part.&nbsp; This one pixel border will then be the only color replicated.&nbsp; I don&#39;t remember the specific calls, but some combination of calls to the actor and texturer should handle the first question, while creating the boundary can be managed through the image pad filters.
<br><br>2 - You are limited by one texture per actor.&nbsp; To use multiple textures with an actor, you will need to either synthesize your multiple textures into one, or divide your single actor into multiples. <br><br>A first attempt at this is:
<br><br><pre>Query Results from the ADS Database<br><br><br>Retrieved 1 abstracts, starting with number 1.  Total number selected: 1.<br><br>@INPROCEEDINGS{2003AIPC..657..340T,<br>   author = {{Turner}, W. and {Drake}, T. and {Osterkamp}, M. and {Kaiser}, D. and 
<br>        {Miller}, J. and {Tu}, P. and {Wilson}, C.},<br>    title = &quot;{Using Computer Vision to Map Laser Ultrasound Onto CAD Geometries}&quot;,<br>booktitle = {Review of Progress in Quantitative Nondestructive Evaluation},
<br>     year = 2003,<br>   series = {American Institute of Physics Conference Series},<br>   volume = 657,<br>   editor = {{Thompson}, D.~O. and {Chimenti}, D.~E.},<br>    month = mar,<br>    pages = {340-350},<br>      doi = {
10.1063/1.1570156},<br>   adsurl = {<a href="http://adsabs.harvard.edu/abs/2003AIPC..657..340T">http://adsabs.harvard.edu/abs/2003AIPC..657..340T</a>},<br>  adsnote = {Provided by the Smithsonian/NASA Astrophysics Data System}
<br>}<br></pre>- Wes<br><br><div><span class="gmail_quote">On 7/20/07, <b class="gmail_sendername">Godofredo</b> &lt;<a href="mailto:godofredoiii@gmail.com">godofredoiii@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;">
<br>Hi to all. I have a triangulated 3D model and I would like to add textures to<br>it from a set of jpg images. My 3D model is stored as a Polydata. I&#39;ve<br>reading and looking at some examples but I&#39;m a bit lost. There are some
<br>points which I&#39;m not able to figure out how to do:<br><br>-In a simple example of mapping an image to a plane, how do I map the Image<br>only to a certain region of the plane, and have no texture in the rest of<br>
the plane? Can this be done? I&#39;ve tried this in a simple example with<br>&quot;vtkTextureMapToPlane&quot; and &quot;vtkTransformTextureCoords&quot;. The texture is<br>mapped to the region I want but it is also displayed as a mosaic in the rest
<br>of the plane I map it to.<br><br>-Is it posible to have a simple actor with two or more different textures<br>added?<br><br>-If so, how do I overlap those textures? I mean, the jpg Images I have<br>correspond to certain regions of the model and in some regions they overlap.
<br>Is there a way to do this?<br><br>Hope someone please give me any advise. Many thanks to all.<br>--<br>View this message in context: <a href="http://www.nabble.com/Two-or-more-.jpg-textures-mapped-to-a-Polydata-tf4115864.html#a11704498">
http://www.nabble.com/Two-or-more-.jpg-textures-mapped-to-a-Polydata-tf4115864.html#a11704498</a><br>Sent from the VTK - Users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________
<br>This is the private VTK discussion list.<br>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>Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br><br clear="all"><br>-- <br>Wesley D. Turner, Ph.D.<br>Kitware, Inc.<br>R&amp;D Engineer<br>
28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x120