[vtkusers] Associating vtkCurvatures to surface structure

David Doria daviddoria at gmail.com
Thu Nov 4 07:54:30 EDT 2010


On Thu, Nov 4, 2010 at 4:18 AM, Max <teegee.max at gmail.com> wrote:

>    Hi list,
>
>  the scalars of the vtkPolyData, the output of vtkCurvatures, contain
> the values of the (selected type of) curvature, if I understand
> correctly. I am looking for the way to associate each curvature value to
> a specific region of the surface (vertex/triangle/edge). Could you point
> me in the right direction please?
>
>  On a related note, is there a way to make vtkCurvature compute both
> curvatures (i.e. mean and Gaussian) at the same time, instead of just
> one of them?
>
>  Thanks!
>

I think you just need to

polydata->GetPointData()->SetActiveScalars("YourArrayName")

to color the points by an array (
and polydata->GetCellData()->SetActiveScalars("YourArrayName") if the array
is the same length as (and attached to) the triangles instead of the points)

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101104/2123d693/attachment.htm>


More information about the vtkusers mailing list