Thanks to all who replied.
I can do it on my Cad program OK, I needed the formula to build in a
VB program which calculates the cusp height on a curved surface.
Caprirs and fpworks have supplied what I need.
I'll now go and build into my program and see if I get the correct answer.
Also study NC Cams method.