Hi,<br><br>I am trying to associate two scalars to points of a vtkPolyData object (i.e., I want to see two SCALARS blocks in POINTDATA segment in the output VTK file). <br><br>Suppose I have a vtkPolyData pointer <br>
<pre>vtkPolyData* mesh;
</pre>and two vtkDoubleArray pointers <br>
<pre> vtkDoubleArray* depth;
vtkDoubleArray* curv;
</pre>
This is what I do: <br>
<pre>depth->SetName("Depth");
mesh->GetPointData()->SetScalars(depth);
curv->SetName("Curvature");
mesh->GetPointData()->AddArray(curv);
</pre><br>I tried to write ``mesh'' into a VTK-format file and it seemed to be right. But I wonder whether this is the right way to do so. <br><br clear="all">Cheers, Forrest<br>