Draw principal axes

Hello,
I would like to draw Principal axes (segment statistic) using Python console. Is it possible please?

thank you!

You can create line or curve markups for the axes and have a control point at (0,0,0) and the other in the coordinate of the axis you got from Segment Statistics.

There is an example in the script repository that draws the principal axes using ROI markup. It should not be hard to modify it to use lines instead.

1 Like