Detection of optional arrays
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In my example, the first input array is required and the second one is optional, which I set using the optional="0" and optional="1" tag for "InputArrayDomain" (I used the XML file for vtkRibbonFilter as a template).
Now in vtkRibbonFilter.cxx there is the following code: inNormals = this->GetInputArrayToProcess(1,inputVector); if ( !inNormals || this->UseDefaultNormal )
This suggests that inNormals is set to NULL when there is no such array, but in my tests this is not the case, instead it points to the first array in these cases.