Using many scalars in one filter

Malcolm Drummond mdrummon at csir.co.za
Thu Mar 2 10:00:00 EST 2000


Hi All

I've just come back to VTK after a long absence, so I'm very rusty - please excuse me if I'm missing the obvious here. I'm trying to do something that's done regularly in AVS, but I can't figure out how to do it with VTK.

I would like to visualize borehole-logs with vtkTubeFilter but I need to map color and radius to different scalars (preferably  different scalar components of a vtkFieldData), not a scalar and a vector. For example, color could represent lithology and radius could represent magnetic-susceptibility. Is there any way to do this? Could it be done with a programmable filter or would I have to write my own filter class that uses field-data and maps components to radius, color etc.?

I once hacked a vtkGlyph3D to use field-data (scale, color etc. were set by array index) but if I have to do this sort of thing again I'd like to do it properly. Seems to me there are a lot of cases where the user may want to map many scalars in a filter rather than a scalar, a vector, a tensor. Would this capability be a welcome addition to the library ?

Any help appreciated! 

--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list