<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
You can set the number of inputs to a filter in the constructor. Like
this:<br>
<br>
this->SetNumberOfInputPorts ( 2 );<br>
<br>
Than in the RequestData you will have to do something like this:<br>
<br>
vtkInformation *inInfo = inputVector[0]->GetInformationObject ( 0 );<br>
vtkInformation *sourceInfo = inputVector[1]->GetInformationObject
( 0 );<br>
vtkInformation *outInfo = outputVector->GetInformationObject ( 0 );<br>
<br>
// get the input and ouptut<br>
vtkDataSet *input = vtkDataSet::SafeDownCast (<br>
inInfo->Get ( vtkDataObject::DATA_OBJECT()
) );<br>
<br>
vtkPolyData *source = vtkPolyData::SafeDownCast (<br>
sourceInfo->Get (
vtkDataObject::DATA_OBJECT() ) );<br>
<br>
<br>
vtkPolyData *output = vtkPolyData::SafeDownCast (<br>
outInfo->Get ( vtkDataObject::DATA_OBJECT()
) );<br>
<br>
<br>
Gregory D Abram wrote:
<blockquote
cite="mid:OFAFEC6A8A.53792D57-ON852574E3.005645F3-852574E3.00567A77@us.ibm.com"
type="cite">
<p>Is there a way to drive a filter from two inputs? I'd like to
derive a planar equation from one filter and use it to specify a cut
plane slicing a the result from a different filter. Any pointers?<br>
<br>
Greg<br>
<br>
</p>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
ParaView mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ParaView@paraview.org">ParaView@paraview.org</a>
<a class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</body>
</html>