Hello, I have a vtkBooleanOperationPolyDataFilter and I want to add two polydata.

I keep getting this error:

Input port 0 of algorithm vtkBooleanOperationPolyDataFilter(0x7fd03000e4e0) has 0 connections but is not optional.

Input port 1 of algorithm vtkBooleanOperationPolyDataFilter(0x7fd03000e4e0) has 0 connections but is not optional.

Can someone give me the general syntax structure for this input and output connection.

For my system, vtkBooleanOperationPolyDataFilter has the methods SetInputConnection, SetInputData, and AddInputData.

Thank you. Any help would be greatly appreciated.