Subdivide navmesh path by elevation

How to make the engine take altitude into account and put waypoints for NavMesh on elevations? On the image - the light line is the navigation path that goes through the elevation. It is necessary to create intermediate points on the surface of the elevation.