<div class="gmail_quote">On Thu, Nov 4, 2010 at 4:18 AM, Max <span dir="ltr">&lt;<a href="mailto:teegee.max@gmail.com">teegee.max@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
    Hi list,<br>
<br>
  the scalars of the vtkPolyData, the output of vtkCurvatures, contain<br>
the values of the (selected type of) curvature, if I understand<br>
correctly. I am looking for the way to associate each curvature value to<br>
a specific region of the surface (vertex/triangle/edge). Could you point<br>
me in the right direction please?<br>
<br>
  On a related note, is there a way to make vtkCurvature compute both<br>
curvatures (i.e. mean and Gaussian) at the same time, instead of just<br>
one of them?<br>
<br>
  Thanks!<br></blockquote><div><br></div><div>I think you just need to</div><div><br></div><div>polydata-&gt;GetPointData()-&gt;SetActiveScalars(&quot;YourArrayName&quot;) </div><div><br></div><div>to color the points by an array ( and polydata-&gt;GetCellData()-&gt;SetActiveScalars(&quot;YourArrayName&quot;) if the array is the same length as (and attached to) the triangles instead of the points)</div>
<br><div>David </div></div>