Convert planar contour to ribbon model in code

I found the solution, it was very simple. In case anyone is interested:
segmentationNode = getNode(“Segmentation”)
segmentationNode.GetSegmentation().CreateRepresentation(“Ribbon model”)

This will create a representation in all segments, using the conversion path with the lowest cost. Conversion starts from the master representation, which in my case was “Planar contour”

1 Like