[vtkusers] marching squares

Brian Alexander Todd bat5 at po.cwru.edu
Tue Jul 25 09:24:50 EDT 2000


Igor,

I may not understand what you are doing but, I do 2D vis with vtkRenderWindow
by texture mapping the vtkStructuredPoints dataset onto a plane (there is
an example that shows how to do this that I think is called "TPlane.tcl").
vtkTexture has a member called InterpolateOff() that I think does what
you want it to.

Brian

At 01:34 PM 7/25/00 +0200, you wrote:
>Hello,
>
>I'm just beginning with vtk and I want to use it basically to display 2D
>images with C++.
>
>I have written a program which uses vtkStructuredPoint, then filters it
>with vtkStructuredPointsGeometryFilter, and finally displays in a
>vtkRenderWindow. 
>
>However, the data is interpolated, i.e. I don't see the seperate pixels,
>rather a smoothed lines instead. For my application I need to see each
>pixel of the image.
>It seems to me that vtkMarchingSquares would allow me to dispay the image
>pixelised, rather than smoothed. Am I right?
>
>I have downloaded vtk31 from the vtk web site, but   <vtkMarchingSquares.h>
>is not there. Is this normal? Is there something else instead I could use?
>
>Thanks for you answers.
>
>I
>
>
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>    Igor Dydenko
>    CREATIS - INSA 502
>    69621 Villeurbanne Cedex
>    France
>
>    Fax : +33 (0)4 72 43 85 26
>    http://www.creatis.insa-lyon.fr
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>
>





More information about the vtkusers mailing list