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-&gt;SetName(&quot;Depth&quot;);
mesh-&gt;GetPointData()-&gt;SetScalars(depth);
curv-&gt;SetName(&quot;Curvature&quot;);
mesh-&gt;GetPointData()-&gt;AddArray(curv);
</pre><br>I tried to write ``mesh&#39;&#39; 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>