[vtkusers] How to get curvature value for each point
Amy Squillacote
amy.squillacote at kitware.com
Tue Apr 3 09:10:21 EDT 2007
Be sure to call curv->Update() before getting the scalars array.
Otherwise the output will contain no data.
- Amy
Syn3DDM wrote:
> Hi
> I know that the vtkCurvatures class computes the curvature of the mesh at
> each point, but I don't know how to get the curvature value of a specific
> point.
> I want to asck you if this code is correct :
>
> vtkCurvatures *curv = vtkCurvatures::New();
> curv->SetInput(input);
> vtkDoubleArray *curvValue = vtkDoubleArray::New();
> curvValue->SetNumberOfComponents(1);
> curvValue->DeepCopy(curv->GetOutput()->GetPointData()->GetScalars());
>
> Is curvValue contains the values of all points curvature ??
>
> Please help me!
>
>
>
>
>
--
Amy Squillacote
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
Phone: (518) 371-3971 x106
More information about the vtkusers
mailing list