Calculate angle between two planes

Operating system: windows 10
Slicer version: version 4.11.0 revision 29053 built 2020-05-11
Expected behavior: calculate angle between two planes
Actual behavior:
After I used extensions manager installing “AnglePlanesExtension”
AnglePlanesExtension did not show up in modules, even after I restarted the 3d slicer

And this is show in my Python interactor
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\syh\AppData\Local\NA-MIC\Slicer 4.11.0-2020-04-10\lib\Python\Lib\”, line 170, in load_source
module = _exec(spec, sys.modules[name])
File “”, line 618, in _exec
File “”, line 674, in exec_module
File “”, line 781, in get_code
File “”, line 741, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “C:/Users/syh/AppData/Roaming/NA-MIC/Extensions-28945/AnglePlanesExtension/lib/Slicer-4.11/qt-scripted-modules/”, line 73
print “-------Angle Planes Widget Setup-------”
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print("-------Angle Planes Widget Setup-------")?

what’s wrong ? or Is there other way to calculate angle between two planes?

Thx a lot.

Probably the AnglePlanesExtension has not been updated to work with latest Slicer version.

While that’s being fixed, you can measure angle between two planes by copy-pasting scripts into the Python console:

1 Like

thanks a lot!! really helpful!

Is there any scripts can calculated angle between two markup lines?
I know there is is an “angle” tool in “create and place”, but I would like to measure angle between two markup lines. It’s slightly different. Thanks again.

I’ve added one more example:

Thank you very much!!