[vtkusers] blue actors?

Koning, P.J.H. de (LKEB) P.J.H.de_Koning at lumc.nl
Fri Aug 16 10:19:48 EDT 2002


16-08-02 16:14:31, Mary Lederer <surreal at bwh.harvard.edu> wrote:

The vtkPolyDataReader probaly reads some scalar values stored in the file.

try TempMapper->ScalarVisibilityOff(); (At least in C ;-)


>Hi vtkusers,
>
>I'm using Tcl/Tk, and I'm trying to read in data from a vtk file and
>display it:
>
>    vtkPolyDataReader TempPolyReader
>    TempPolyReader SetFileName $Navigator(FlatSelect)
>
>    # create a vtkPolyDataMapper to map the data from the vtk file
>    vtkPolyDataMapper TempMapper
>    TempMapper SetInput [TempPolyReader GetOutput]
>
>    # create a vtkActor for the vtkMapper to map to
>    vtkActor Navigator($name,Actor)
>    Navigator($name,Actor) SetMapper TempMapper
>
>    # add the vtkActor
>    Navigator($name,Renderer) AddActor Navigator($name,Actor)    
>
>However, when I load a vtk file and run this, the actor comes out
>blue.  I'm fairly sure that it shouldn't be.  I can only guess that
>this has something to do with vtkPolyDataReader, as when I add another
>actor to the scene (from a source, rather than a file) it is white
>(which I assume is the default color).  I am clueless.  If you have
>any clues, help is appreciated.
>
>Thanks,
>-Maitland
>_______________________________________________
>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