[vtkusers] problems with vtKProgrammableSource

Bryan Cole bryan.cole at teraview.com
Fri Jan 15 13:01:29 EST 2016


On Fri, 2016-01-15 at 12:46 -0500, David E DeMarle wrote:
6.2


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.


0 = polydata
1 = structured points
2 = structured grid
3 = unstructured grid
4 = rectilinear grid

Ah. How do I select a particular output port?




Kind of awkward though so I still recommend you use vtkPythonAlgorithm if you can update to >= 6.2.

If I can I will.

Thanks again,

Bryan






David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Fri, Jan 15, 2016 at 12:41 PM, Bryan Cole <bryan.cole at teraview.com<mailto:bryan.cole at teraview.com>> wrote:
On Fri, 2016-01-15 at 12:30 -0500, David E DeMarle wrote:
I could be wrong but programmable source doesn't have a SetRequestDataObjectMethod or a SetFillOutputPortInformation method which is where you might change that.


I recommend you use the new vtkPyhtonAlgorithm instead.

http://www.kitware.com/blog/home/post/737



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.

Thanks,
BC





_______________________________________________
Powered by www.kitware.com<http://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




--
Group Leader, Technical Development Group - Teraview Ltd.
Platinum Building, St. John's Innovation Park, Cambridge CB4 0DS, UK.
tel: +44 (0)1223 435386, fax: +44 (0)1223 435382, web: www.teraview.com<http://www.teraview.com/> Registered Number: 04126946, VAT Number: 770 8883 84

...preferred document formats: ODF (ISO/IEC 26300:2006), PDF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160115/8bc82716/attachment.html>


More information about the vtkusers mailing list