[vtkusers] vtkSphereSource and VES

Cory Quammen cory.quammen at kitware.com
Tue Jan 20 14:35:45 EST 2015


Cameron,

Try calling Update() on your vtkAppendPolyData filter prior to calling
setPolyData().

- Cory

On Tue, Jan 20, 2015 at 2:23 PM, Cameron Lowell Palmer <
cameron.palmer at ntnu.no> wrote:

>  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
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>


-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150120/50a34934/attachment.html>


More information about the vtkusers mailing list