<div dir="ltr">Cameron,<div><br></div><div>Try calling Update() on your vtkAppendPolyData filter prior to calling setPolyData().</div><div><br></div><div>- Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 2:23 PM, Cameron Lowell Palmer <span dir="ltr"><<a href="mailto:cameron.palmer@ntnu.no" target="_blank">cameron.palmer@ntnu.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
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?
<div><br>
</div>
<div>
<div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(112,61,170)">
vtkSmartPointer<span style="color:#000000"><</span>vtkSphereSource<span style="color:#000000">> sphereSource =
</span>vtkSmartPointer<span style="color:#000000"><</span>vtkSphereSource<span style="color:#000000">>::</span><span style="color:#3d1d81">New</span><span style="color:#000000">();</span></div>
<div style="margin:0px;font-size:11px;font-family:Menlo">        sphereSource-><span style="color:#3d1d81">SetCenter</span>(<span style="color:#272ad8">0.f</span>,
<span style="color:#272ad8">
0.f</span>, <span style="color:#272ad8">
0.f</span>);</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">        sphereSource-><span style="color:#3d1d81">SetRadius</span>(<span style="color:#272ad8">10.f</span>);</div>
<div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px">
<br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(112,61,170)">
<span style="color:#000000">       
</span><span style="color:#bb2ca2">auto</span><span style="color:#000000"> polyData =
</span>vtkSmartPointer<span style="color:#000000"><</span>vtkAppendPolyData<span style="color:#000000">>::</span><span style="color:#3d1d81">New</span><span style="color:#000000">();</span></div>
<div style="margin:0px;font-size:11px;font-family:Menlo">        polyData-><span style="color:#3d1d81">SetInputConnection</span>(sphereSource-><span style="color:#3d1d81">GetOutputPort</span>());</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">        sphereSource-><span style="color:#3d1d81">Update</span>();</div>
<div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px">
<br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(79,129,135)">
<span style="color:#000000">       
</span><span style="color:#bb2ca2">auto</span><span style="color:#000000"> sphere =
</span><span style="color:#bb2ca2">new</span><span style="color:#000000">
</span>vesKiwiImagePlaneDataRepresentation<span style="color:#000000">();</span></div>
<div style="margin:0px;font-size:11px;font-family:Menlo">        sphere-><span style="color:#31595d">setPolyData</span>(polyData-><span style="color:#3d1d81">GetOutput</span>());</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">        <span style="color:#bb2ca2">
this</span>-><span style="color:#4f8187">CallbackRep</span>.<span style="color:#3d1d81">push_back</span>(sphere);</div>
</div>
<div><br>
</div>
<div>I SIGABRT  at sphere->setPolyData.</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Cameron Palmer</div>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>