I&#39;ld sit down with a debugger and see which request exactly is failing and why.<div><br></div><div>Try overriding vtkAlgorithm::ProcessRequest() in your filter so that you can easily get a breakpoint in an instance of your class.</div>

<div><br></div><div>In that method call PrintSelf(cerr, vtkIndent(0)) on the &quot;request&quot; vtkInformation. Put the breakpoint right after that.</div><div>After the breakpoint call this-&gt;Superclass::ProcessRequest().</div>

<div><br></div><div>When the PrintSelf tells you which request fails, rerun and step in until you see why the handling method returns.</div><div><br></div><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<br>
<br><br><div class="gmail_quote">On Fri, Jan 20, 2012 at 3:34 PM, Sohail Shafii <span dir="ltr">&lt;<a href="mailto:sohailshafii@yahoo.com">sohailshafii@yahoo.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><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><span>Thanks. I get these sorts of errors:</span></div><div><span>vtkPVCompositeDataPipeline (0x2a831a0): Algorithm vtkFastMarcher(0x2a80860) returned failure for request: vtkInformation (0x339b0f0<br>

</span></div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt">Before RequestData is reached...</div><span class="HOEnZb"><font color="#888888"><div style="font-family:arial,helvetica,sans-serif;font-size:12pt">

<br></div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt">Sohail</div>  </font></span><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"> <div style="font-size:12pt;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">

 <div dir="ltr"> <font face="Arial"> <hr size="1"><div class="hm HOEnZb">  <b><span style="font-weight:bold">From:</span></b>
 David E DeMarle &lt;<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>&gt;<br> <b><span style="font-weight:bold">To:</span></b> Sohail Shafii &lt;<a href="mailto:sohailshafii@yahoo.com" target="_blank">sohailshafii@yahoo.com</a>&gt; <br>

<b><span style="font-weight:bold">Cc:</span></b> &quot;<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>&quot; &lt;<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>&gt; <br>

 <b><span style="font-weight:bold">Sent:</span></b> Friday, January 20, 2012 11:42 AM<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [Paraview] vtkDataSet algorithm that takes composite data set as input<br>

 </div></font><div class="hm HOEnZb"> </div></div><div><div class="h5"> <br>
<div>Try something like this.<div><div>In this case the mapper takes in either type, which you may or may not want.</div><div><br></div><div>//----------------------------------------------------------------------------</div>

<div>

int vtkCompositePolyDataMapper2::FillInputPortInformation(</div><div>  int vtkNotUsed(port), vtkInformation* info)</div><div>{</div><div>  info-&gt;Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), &quot;vtkPolyData&quot;);</div>



<div>  info-&gt;Append(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), &quot;vtkCompositeDataSet&quot;);</div><div>  return 1;</div><div>}</div><div><br></div>David E DeMarle<br>Kitware, Inc.<br>R&amp;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><br>
<br><br><div>On Fri, Jan 20, 2012 at 2:36 PM, Sohail Shafii <span dir="ltr">&lt;<a rel="nofollow" href="mailto:sohailshafii@yahoo.com" target="_blank">sohailshafii@yahoo.com</a>&gt;</span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div>Hi,</div><div><br></div><div>I am developing an algorithm that requires a composite data set as input while creating a vtkDataSet as output -- basically it inherit from vtkDataSetAlgorithm. I know that one must provide a new definition to the FillInputPortInformation(int port, vtkInformation *info) function, but I&#39;m not sure how. Please advise, thank you.</div>



<span><font color="#888888"><div><br></div><div>Sohail</div></font></span></div></div><br>_______________________________________________<br>
Powered by <a rel="nofollow" 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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</div><br><br> </div></div></div> </div>  </div></div></blockquote></div><br></div>