<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><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><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> <div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b>
David E DeMarle <dave.demarle@kitware.com><br> <b><span style="font-weight: bold;">To:</span></b> Sohail Shafii <sohailshafii@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "paraview@paraview.org" <paraview@paraview.org> <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> </font> </div> <br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1375614559">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->Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), "vtkPolyData");</div>
<div> info->Append(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), "vtkCompositeDataSet");</div><div> return 1;</div><div>}</div><div><br></div>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<br>
<br><br><div class="yiv1375614559gmail_quote">On Fri, Jan 20, 2012 at 2:36 PM, Sohail Shafii <span dir="ltr"><<a rel="nofollow" ymailto="mailto:sohailshafii@yahoo.com" target="_blank" href="mailto:sohailshafii@yahoo.com">sohailshafii@yahoo.com</a>></span> wrote:<br><blockquote class="yiv1375614559gmail_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>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'm not sure how. Please advise, thank you.</div>
<span class="yiv1375614559HOEnZb"><font color="#888888"><div><br></div><div>Sohail</div></font></span></div></div><br>_______________________________________________<br>
Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.paraview.org/mailman/listinfo/paraview<br>
<br></blockquote></div><br></div>
</div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br> </div> </div> </div></body></html>