<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
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 class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(112, 61, 170);" class="">
vtkSmartPointer<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""><</span>vtkSphereSource<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">> sphereSource =
</span>vtkSmartPointer<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""><</span>vtkSphereSource<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">>::</span><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">New</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">();</span></div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">        sphereSource-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">SetCenter</span>(<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">0.f</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">
0.f</span>, <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">
0.f</span>);</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">        sphereSource-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">SetRadius</span>(<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">10.f</span>);</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(112, 61, 170);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">       
</span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">auto</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> polyData =
</span>vtkSmartPointer<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""><</span>vtkAppendPolyData<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">>::</span><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">New</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">();</span></div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">        polyData-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">SetInputConnection</span>(sphereSource-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">GetOutputPort</span>());</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">        sphereSource-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">Update</span>();</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, 129, 135);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">       
</span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">auto</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> sphere =
</span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">new</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span>vesKiwiImagePlaneDataRepresentation<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">();</span></div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">        sphere-><span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">setPolyData</span>(polyData-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">GetOutput</span>());</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">        <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">
this</span>-><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">CallbackRep</span>.<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">push_back</span>(sphere);</div>
</div>
<div class=""><br class="">
</div>
<div class="">I SIGABRT  at sphere->setPolyData.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
</div>
<div class="">Cameron Palmer</div>
</body>
</html>