In my code I would like to extract the model data within a placed ROI and create two new models from that. Does anybody have any hints or examples on how to achieve this?
I’m not sure if there is a model clipping tool that uses ROI box as input. You can try EasyClip (clips using a slice plane) and ModelClip (clips using a series of connected planes) extensions as they are, or modify them to clip using planes of an ROI box.
If you work with closed surface models then you have an extensive toolset to edit models (clip, cut, combine, edit, smooth, hollow, grow, shrink, etc.) in Segment Editor module. You need to either load the model file as segmentation (in Add data popup window); or - if you have already loaded your data as model node - then you can import the model node into a segmentation node using Segmentations module Import/export section.