<div dir="ltr"><span style="font-size:13px">clip.SetInputConnection(src.</span><span style="font-size:13px">GetOutputPort())</span><br><div><span style="font-size:13px">-> </span></div><div><span style="font-size:13px">clip.SetInputConnection(src.</span><span style="font-size:13px">GetOutputPort(1))</span><span style="font-size:13px"><br></span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px"><br></span></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Fri, Jan 15, 2016 at 1:01 PM, Bryan Cole <span dir="ltr"><<a href="mailto:bryan.cole@teraview.com" target="_blank">bryan.cole@teraview.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>





<div><span class="">
On Fri, 2016-01-15 at 12:46 -0500, David E DeMarle wrote:
<blockquote type="CITE">6.2 </blockquote>
<blockquote type="CITE"><br>
<br>
</blockquote>
<blockquote type="CITE">On further reflection (see vtkProgrammableSource::vtkProgrammableSource) it looks like the way you are supposed to choose the type of output is to connect to a particular output port.
</blockquote>
<blockquote type="CITE"><br>
<br>
</blockquote>
<blockquote type="CITE">0 = polydata </blockquote>
<blockquote type="CITE">1 = structured points </blockquote>
<blockquote type="CITE">2 = structured grid </blockquote>
<blockquote type="CITE">3 = unstructured grid </blockquote>
<blockquote type="CITE">4 = rectilinear grid<br>
</blockquote>
<br></span>
Ah. How do I select a particular output port?<span class=""><br>
<br>
<br>
<blockquote type="CITE"><br>
<br>
</blockquote>
<blockquote type="CITE">Kind of awkward though so I still recommend you use vtkPythonAlgorithm if you can update to >= 6.2.<br>
</blockquote>
<br></span>
If I can I will.<br>
<br>
Thanks again,<br>
<br>
Bryan<span class=""><br>
<br>
<br>
<br>
<blockquote type="CITE"><br>
<br>
</blockquote>
<blockquote type="CITE"><br>
</blockquote>
<blockquote type="CITE">David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a> </blockquote>
<blockquote type="CITE"><br>
</blockquote>
<blockquote type="CITE">On Fri, Jan 15, 2016 at 12:41 PM, Bryan Cole <<a href="mailto:bryan.cole@teraview.com" target="_blank">bryan.cole@teraview.com</a>> wrote:
</blockquote>
<blockquote type="CITE">
<blockquote>On Fri, 2016-01-15 at 12:30 -0500, David E DeMarle wrote: <br>
<blockquote type="CITE">I could be wrong but programmable source doesn't have a SetRequestDataObjectMethod or a SetFillOutputPortInformation method which is where you might change that.<br>
<br>
<br>
I recommend you use the new vtkPyhtonAlgorithm instead.<br>
<br>
<a href="http://www.kitware.com/blog/home/post/737" target="_blank">http://www.kitware.com/blog/home/post/737</a><br>
<br>
<br>
</blockquote>
<br>
Thanks for this tip. What version was this class introduced? My system vtk version is 6.0.0 and I can't see this class.<br>
<br>
Thanks,<br>
BC<br>
<br>
<br>
<br>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote><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>
</blockquote>
<blockquote type="CITE"><br>
<br>
</blockquote>
<br>
</span><span class=""><table cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>-- <br>
Group Leader, Technical Development Group - Teraview Ltd.<br>
Platinum Building, St. John's Innovation Park, Cambridge CB4 0DS, UK.<br>
tel: <a href="tel:%2B44%20%280%291223%20435386" value="+441223435386" target="_blank">+44 (0)1223 435386</a>, fax: <a href="tel:%2B44%20%280%291223%20435382" value="+441223435382" target="_blank">+44 (0)1223 435382</a>, web: <a href="http://www.teraview.com/" target="_blank">www.teraview.com</a> Registered Number: 04126946, VAT Number: 770 8883 84<br>
<br>
...preferred document formats: ODF (ISO/IEC 26300:2006), PDF </td>
</tr>
</tbody>
</table>
</span></div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>