Merge CT volume node with a model node in python

You can “paint” an STL model into a CT by importing the STL model into a segmentation then use Mask volume effect (provided by SegmentEditorExtraEffects extension) in Segment Editor module.

Model painted into CBCT volume using Mask volume effect: