Perpendicular vectors

Hi Guys,
I wany to create vectors perpendicular to a curve at given set of points.
Please see attached .gh and .3dm files.

currently I am getting this vector, but I want vector plan to be x-y plane. (Similar to red lines marked in attached snapshot)

Trial.3dm (33.6 KB)
Trial.gh (6.9 KB)



you can easily have a plane perpendicular to the polyline
every vector in that plane would be normal to your polyline… so its not defined yet

perpendicularInTopView.gh (9.5 KB)

This will work, thanks for the help.

Perpendicular in what plane?

Oh man, those vectors aren’t perpendicular to anything!

OK, done, thanks for saving me more time.