[vtkusers] How to map 2 scalar attributes simultaneously?
Mathieu Malaterre
mathieu.malaterre at kitware.com
Wed Jun 2 14:59:04 EDT 2004
Immo,
Use vtkThresholdPoints and not vtkThreshold. You can use
SetActiveScalars on:
vtkPolyDataReader reader
reader->SetFileName "data.vtk"
reader->Update()
reader->GetOutput()->GetPointData()->SetActiveScalars( "scalar1 ");
HTH
Mathieu
Immo Trinks wrote:
> Thank you Mathieu.
>
> How do I tell vtkThreshold which scalar to use?
> I use one vtkPolyDataReader and set one scalar name that I want to use.
>
> vtkPolyDataReader dataReader
> dataReader SetFileName "data.vtk"
> dataReader SetScalarsName "scalar1"
>
> Then the vtkGlyph3d shall use scalar2 for the mapping. Somehow ...
>
> Immo
>
>
> On Wednesday 02 Jun 2004 5:49 pm, Mathieu Malaterre wrote:
>
>>Immo,
>>
>> I guess you can do a vtkThresholdPoints on scalar2 followed by a
>>vtkGlyph3d on scalar1.
>>
>>HTH
>>Mathieu
>>
>>Immo Trinks wrote:
>>
>>>Hi,
>>>
>>>I have VTK point data (1500 points) with two attributes (scalar1 and
>>>scalar2) assigned to each data point.
>>>
>>>I would like to display the points as spheres that are coloured relative
>>>to scalar1. At the same time, only those spheres shall be visible for
>>>which scalar2 is within a given scalar range. How can this be done?
>>>
>>>Thank you for any help!
>>>Immo
>>>
>>>_______________________________________________
>>>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://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
More information about the vtkusers
mailing list