Follow this post
You need to add reference point hosted by adaptive point in xy plan. Then calculate the angle between the x Victor from the coordinat system at station of each adaptive pointsand x global about z global
also at your dynamo script you calcuate only single parameter for the angle. what you need angle for each face
may the family attached ti this post help you