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

Bill Lorensen bill.lorensen at gmail.com
Mon Aug 25 16:58:44 EDT 2014


Please post the entire C++ code.

Thanks,

Bill

On Mon, Aug 25, 2014 at 2:54 PM, Sky77 <Joan.Hensen at outlook.de> wrote:
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list