<div dir="ltr">There is also vtkProjectedTexture that works like a slide projector to &quot;Project&quot; textures (calculate texture coordinates) onto actors.&nbsp; If your Polydata is largely oriented normal to a particular view direction, or can be broken up into a small number of actors each of which is largely normal to a particular view direction, this can be quite useful.&nbsp; You can use a small pattern, as David suggests, then turn RepeatOn on the vtkTexture object to repeat the pattern across the entire PolyData.<br>
<br>- Wes<br><br><div class="gmail_quote">On Wed, Sep 17, 2008 at 10:41 AM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Ben,<br>
<br>
It is possible, but AFAIK there isn&#39;t an easy way to do it. &nbsp;You would<br>
have to apply a texture, ideally just a very small texture with a size<br>
of around 16x16 that can be tiled to create the pattern that you want.<br>
&nbsp;The trick is that, in order to get it to display nicely, you will<br>
have some work ahead of you to properly compute and the set texture<br>
coordinates for the polydata. &nbsp;VTK&#39;s own texture coordinate<br>
computation classes (vtkTextureMapToPlane, vtkTextureMapToSphere) are<br>
meant for applying large textures to polydata, rather than small<br>
hatching-pattern textures.<br>
<br>
 &nbsp; David<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On Wed, Sep 17, 2008 at 10:31 AM, Ben Held &lt;<a href="mailto:ben.held@staarinc.com">ben.held@staarinc.com</a>&gt; wrote:<br>
&gt; Is it possible to display a hatching on a vtkPolyData? &nbsp;I&#39;m thinking just a<br>
&gt; simple cross hatching. &nbsp;Any pointers?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Ben Held<br>
&gt; Simulation Technology &amp; Applied Research, Inc.<br>
&gt; 11520 N. Port Washington Rd., Suite 201<br>
&gt; Mequon, WI 53092<br>
&gt; P: 1.262.240.0291 x101<br>
&gt; F: 1.262.240.0294<br>
&gt; E: <a href="mailto:ben.held@staarinc.com">ben.held@staarinc.com</a><br>
&gt; <a href="http://www.staarinc.com" target="_blank">http://www.staarinc.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; This is the private VTK discussion list.<br>
&gt; Please keep messages on-topic. Check the FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<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" target="_blank">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" target="_blank">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<br>
</div>