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

Sky77 Joan.Hensen at outlook.de
Mon Aug 25 14:54:57 EDT 2014


Hey guys,

i have a problem with an example. Its name is  Compute Gaussian, Mean, Min
and Max Curvatures
<http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/Curvatures>  . Instead of
using a vtp file as input, i use the following code to create a sphere and
use the sphere as input:

/* Create a sphere */
vtkSmartPointer<vtkSphereSource> sphereSource =
vtkSmartPointer<vtkSphereSource>::New();
sphereSource->SetCenter(0.0, 0.0, 0.0);
sphereSource->SetRadius(1.0);
sphereSource->SetThetaResolution(50);
sphereSource->SetPhiResolution(50);

I also changed the following line 

curvaturesFilter->SetInputConnection(reader->GetOutputPort());

to 

curvaturesFilter->SetInputConnection(sphereSource ->GetOutputPort());

so that the algorithm works on the sphere. 

Here <http://vtk.1045678.n5.nabble.com/file/n5728377/result.png>   you can
see the output. What did i do wrong?



--
View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-Compute-Gaussian-Mean-Minm-and-Max-Curvatures-example-tp5728377.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list