[vtkusers] Multiple fields (scalars, vectors)

David Doria daviddoria+vtk at gmail.com
Fri Feb 26 08:05:28 EST 2010


On Fri, Feb 26, 2010 at 3:56 AM, Sebastian Gatzka <
sebastian.gatzka at stud.tu-darmstadt.de> wrote:

>  Hello World.
>
>
>
> How can I assign different field values like scalars and vectors to a
> (structured) grid?
>
> Looks to me that only the last data set with ->SetScalar() or ->SetVector()
> is considered.
>
>
>
> I want to use different fields for different cuts, contours etc.
>
> How do I tell these actors/mappers which one of the fields should be
> considered?
>
>
>
> Sebastian
>
>
> I've never used this, but I believe you're looking for the SetActiveScalars
function:
 output->GetCellData()->SetActiveScalars(INTERFACE_COLORING);

If you figure out the syntax and could write a short example for the wiki,
that would be much appreciated!

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100226/60868a2c/attachment.htm>


More information about the vtkusers mailing list