vtkAlgorithm : SetInputConnection() vs AddInputConnection() ?

I am reading the documentation about the methods here but can’t wrap my head around when to use which one

If I am simply connecting the outputport of one node to the inputport of another node, do I add or set ?


Note that you can connect multiple inputs to the same port. Many times you have only one input in which case you use Set, some filters (such as append poly data) have several inputs in which case you’ll use add.


describes this.

1 Like