<div dir="ltr">The number of inputs that the threshold filter accepts cannot be changed, without rewriting it that is.<div><br></div><div>Instead, think about making a branching pipeline, that is sending your unstructured grid into multiple threshold filters, the output of each is to be rendered independently.<br>

<div><br></div></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 3:22 PM, Bhanu Hariharan <span dir="ltr">&lt;<a href="mailto:bhanu@petrotel.com" target="_blank">bhanu@petrotel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div><div><div><div><div><div><div>Dear vtk-users,<br><br></div>I am trying to do set up multiple Input Ports for a vtkThreshold type of filter.<br></div>Input to the threshold filter is a vtkUnstructuredGrid.<br>


<br></div><div>My code looks like<br><br></div><div>myThresholdfilter.SetInput(port0, myUnstructuredGrid);<br>myThresholdfilter.SetInput(port1, myUnstructuredGrid);<br><br><br></div>I would like to setup multiple viewports in my rendering window and in each viewport I would like a different grid property rendered. The grid property is a scalar array added to myUnstructuredGrid.<br>


</div><div><br>(I thought I can render different image in different viewports this way - I may be wrong here to begin with so if anyone wants to correct me here please feel free).<br></div><div><br>At run time as soon as the debugger hits the line <br>


myThresholdfilter.SetInput(port1, myUnstructuredGrid);<br></div>it complaints that I attempted to use port index 1 when number of ports is 1.<br><br></div>I can&#39;t even seem to do <br>myThresholdfilter.SetNumberofInputPorts(); <br>


</div><div>as this is a protected method.<br></div><div><br></div>How do I set up multiple input ports for a vtkThreshold filter. Please if anyone can shed some light on it, it would be a great help as I have spent a lot of time on it trying this and that without any luck.<br>


<br></div>Thanks in advance,<br></div>Bhanu<br></div>

<br>
<div><hr></div><font size="1"><span style="color:rgb(31,73,125)"><b>DISCLAIMER</b>: </span><font color="#1f497d"><span style>This e-mail and any files transmitted with it (&quot;Message&quot;) is intended only for the use of the recipient(s) named above and may contain confidential information. You are hereby notified that the taking of any action in reliance upon, or any review, retransmission, dissemination, distribution, printing or copying of this Message or any part thereof by anyone other than the intended recipient(s) is strictly prohibited. If you have received this Message in error, you should delete this Message immediately and advise the sender by return e-mail. Opinions, conclusions and other information in this Message that do not relate to the official business of PETROTEL  or its affiliated Companies shall be understood as neither given nor endorsed by PETROTEL or any of its affiliated companies.</span></font></font><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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>