Is there a way to figure out which vtk filters, parameters and processing steps are run in Slicer, when one clicks the “export visible segments to models” button? Since it takes a binary voxel mask and converts it to a mesh, I assume vtkContourFilter is used?
I would like to replicate this functionality outside of Slicer, in python. I looked in the Slicer source code, but couldn’t get far. In addition, would also like to understand the methods for the opposite “Convert model to segmentation node”.
Any help would be appreciated! If this is documented somewhere, please let me know.
Thanks,
Chaitanya