ALive-research / Slicer-Liver

3D Slicer extension for liver analysis and therapy planning
Other
15 stars 9 forks source link

Return of different data types based on previous condition #242

Closed RafaelPalomar closed 10 months ago

RafaelPalomar commented 1 year ago

We should change this fragment so the function in question does not return different data type (vtkPolyData vs. vtkMRMLNode). Caller functions of this do not handle different data types, but assume the return is vtkMRMLNode.

https://github.com/ALive-research/Slicer-Liver/blob/40402d63fd223cf59be39954c5f620c8984f0199/Liver/Liver.py#L1092-L1094