[vtkusers] Re: Multiple scalars in vtkPolyData

Goodwin Lawlor goodwin.lawlor at ucd.ie
Mon Aug 23 19:21:07 EDT 2004


Hi Charles,

Have a look at the vtkFieldData class

> How do I load multiple scalars?
polydata->GetPointData->AddArray(vtkDataArray *array)
polydata->GetCellData->AddArray(vtkDataArray *array)

> And this also begs another question: how can I select which one I want
> to display once I have been able to load several ones?
      polydata->GetPointData->SetActiveScalars   ( const char *   name  )

      polydata->GetCellData->SetActiveScalars   ( const char *   name  )


make sure to give you vtkDataArray a name...


hth


Goodwin







More information about the vtkusers mailing list