<div dir="ltr">6.2<div><br></div><div>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.</div><div><br></div><div>0 = polydata</div><div>1 = structured points</div><div>2 = structured grid</div><div>3 = unstructured grid</div><div>4 = rectilinear grid</div><div><br></div><div>Kind of awkward though so I still recommend you use vtkPythonAlgorithm if you can update to >= 6.2.</div><div><br></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 12:41 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:30 -0500, David E DeMarle wrote:
<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.
</blockquote>
<blockquote type="CITE"><br>
<br>
</blockquote>
<blockquote type="CITE">I recommend you use the new vtkPyhtonAlgorithm instead.<br>
<br>
</blockquote>
<blockquote type="CITE"><a href="http://www.kitware.com/blog/home/post/737" target="_blank">http://www.kitware.com/blog/home/post/737</a><br>
<br>
</blockquote>
<blockquote type="CITE"><br>
</blockquote>
<br></span>
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>
</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>