Good news! A successful use of trGlobals mapping. Working on getting getPortalOrientation and isMirror to F#.