[vtkusers] Problem with "Compute Gaussian, Mean, Minm and Max Curvatures" example

David Doria daviddoria at gmail.com
Tue Aug 26 07:48:13 EDT 2014


On Tue, Aug 26, 2014 at 5:42 AM, Sky77 <Joan.Hensen at outlook.de> wrote:

> Hey HTH.
>
> You're right. The sphere alone is an unsuitable example to show that
> something isn't working when we are looking at the curvature. Therefore I
> have adapted the code. Now we are looking at the Gaussian curvature of two
> overlapping spheres. It is clear that the viusalization should show
> positive
> curvature everywhere execpt the area where they overlap. There it should be
> negative curvature. My resulting visualization has not changed (see  here
> <http://vtk.1045678.n5.nabble.com/file/n5728392/result.png>  ).
>

It works for me. I had to change

appendFilter->AddInputConnection(input1->GetProducerPort());
appendFilter->AddInputConnection(input2->GetProducerPort());

to

appendFilter->AddInputData(input1);
appendFilter->AddInputData(input2);

for VTK6 compatibility, but then I get the attached output.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140826/3ed6cb98/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: curvature.jpg
Type: image/jpeg
Size: 10496 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140826/3ed6cb98/attachment.jpg>


More information about the vtkusers mailing list