[vtkusers] vtkSphereSource and VES

Cameron Lowell Palmer cameron.palmer at ntnu.no
Tue Jan 20 14:23:58 EST 2015


As an experiment I’m simply trying to add a vtkSphereSource to a VES app running on the iPhone. How can you make this work?

vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New();
        sphereSource->SetCenter(0.f, 0.f, 0.f);
        sphereSource->SetRadius(10.f);

        auto polyData = vtkSmartPointer<vtkAppendPolyData>::New();
        polyData->SetInputConnection(sphereSource->GetOutputPort());
        sphereSource->Update();

        auto sphere = new vesKiwiImagePlaneDataRepresentation();
        sphere->setPolyData(polyData->GetOutput());
        this->CallbackRep.push_back(sphere);

I SIGABRT  at sphere->setPolyData.


Thanks,

Cameron Palmer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150120/367ff63e/attachment.html>


More information about the vtkusers mailing list