[vtkusers] Hatching

David Gobbi david.gobbi at gmail.com
Wed Sep 17 10:41:53 EDT 2008


Hi Ben,

It is possible, but AFAIK there isn't an easy way to do it.  You would
have to apply a texture, ideally just a very small texture with a size
of around 16x16 that can be tiled to create the pattern that you want.
 The trick is that, in order to get it to display nicely, you will
have some work ahead of you to properly compute and the set texture
coordinates for the polydata.  VTK's own texture coordinate
computation classes (vtkTextureMapToPlane, vtkTextureMapToSphere) are
meant for applying large textures to polydata, rather than small
hatching-pattern textures.

   David


On Wed, Sep 17, 2008 at 10:31 AM, Ben Held <ben.held at staarinc.com> wrote:
> Is it possible to display a hatching on a vtkPolyData?  I'm thinking just a
> simple cross hatching.  Any pointers?
>
>
>
>
>
> Ben Held
> Simulation Technology & Applied Research, Inc.
> 11520 N. Port Washington Rd., Suite 201
> Mequon, WI 53092
> P: 1.262.240.0291 x101
> F: 1.262.240.0294
> E: ben.held at staarinc.com
> http://www.staarinc.com
>
>
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list