<html><head><base href="x-msg://6/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Ayman,<div><br></div><div>The texture coordinates should be associated with the PointData of your PolyData, rather than the actor. You should be able to check and see if there is anything assigned (but I've never tried this as a test for existence, only to get the coordinates I knew were there):</div><div><br></div><div>polydata-&gt;GetPointData()-&gt;GetTCoords()</div><div><br></div><div>Talk to you later,</div><div>-Eric</div><div><br></div><div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">------------------------------------------------------<br>Eric E Monson<br>Duke Visualization Technology Group<br></span></div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br></span></div><div><div>On Jul 22, 2010, at 6:52 PM, Ayman Habib wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div bgcolor="#ffffff"><div><font size="2" face="Arial">Hi all,</font></div><div><font size="2" face="Arial"></font>&nbsp;</div><div><font size="2" face="Arial">I'm trying to apply texture to some geometry in a vtk window. According to the documentation this can be done by calling</font></div><div><font size="2" face="Arial">vtkActor-&gt;SetTexture(vtkTexture) this however assumes that the Actor has Texture Coordinates already so my question is h</font><font size="2" face="Arial">ow to detect if an Actor has TextureCoordinates available (in order to give a better feedback in case it doesn't)?. My Actors have associated vtkPolyData&nbsp;that is &nbsp;constructed from a Reader (.vtp, .obj) in case it matters.</font></div><div><font size="2" face="Arial"></font>&nbsp;</div><div><font size="2" face="Arial">Thanks all for your help,</font></div><div><font size="2" face="Arial">-Ayman</font></div><div><font size="2" face="Arial"></font>&nbsp;</div><div><font size="2" face="Arial"></font>&nbsp;</div>_______________________________________________<br>Powered by<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at:<span class="Apple-converted-space">&nbsp;</span><a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><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></div></span></blockquote></div></div><br></body></html>