<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Thanks! Not exactly what I&#39;m looking for (I don&#39;t need to colour the</div>

surface - I need the numbers), but I think I get the drill: set active<br>
scalars, then extract them on a point-by-point basis (i.e., per vertex).<br>
All that remains is finding all triangles and edges sharing that<br>
vertex... the edges I think I would get from vtkExtractEdges, but any<br>
hints about triangles would be greatly appreciated.<br>
<br>
Thanks!<br>
<br></blockquote><div> </div></div>You don&#39;t need to set anything as active just to get the numbers:<div><br></div><div>vtkFloatArray* yourNumbers = vtkFloatArray::SafeDownCast(polydata-&gt;GetPointData()-&gt;GetArray(&quot;YourArray&quot;);</div>
<div><br></div><div>(where of course vtkFloatArray is replaced by whatever type the array actually is)</div><div><br></div><div>Getting all triangles that share a vertex can be done with vtkPolyData::GetPointCells:</div><div>
<br></div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkPolyData.html#ac5d9684045b6bd80c5973fe8ae1d914b">http://www.vtk.org/doc/nightly/html/classvtkPolyData.html#ac5d9684045b6bd80c5973fe8ae1d914b</a></div><div>
<br></div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkPolyData.html#ac5d9684045b6bd80c5973fe8ae1d914b"></a>Then to get the edges, for each cell that you found from GetPointCells, you can use GetCellPoints to determine the edges.</div>
<div><br>David</div>