Visibility analyis

I have been trying to do visibility analysis for my module, even though I have a script it got crashed it seems, if someone is free can you please run their script in their system and send me back, I’ll share my rhino 3d and visibility analysis script.
visiblity.gh (42.2 KB)
Module 3d visibility analysis.rar (477.9 KB)