<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hello,<div>I have a filter, inherited from vtkUnstructuredGridAlgorithm, which can process both structured and unstructured grids, but the only way I found to restrict the valid inputs is:</div><div><div><br></div><div> int MyFilter::FillInputPortInformation(int vtkNotUsed(port), vtkInformation *info)</div><div> {</div><div> info->Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), "vtkPointSet");</div><div> return 1;</div><div> }</div></div><div><br></div><div>so it means that I can connect a vtkPolyData set to my filter, which is a mistake actually.</div><div>How could I set vtkStructuredGrid and vtkUnstructuredGrid as the only valid input types?</div><div><br></div>                                            </div></body>
</html>