Normal to Trajectory - Normal to Surface

The z-axis is tangent at all points to the origin trajectory. The y-direction is set by the surface normal direction. Therefore, the x-axis is determined by the intersection of the section plane and the surface tangent plane at each point.