. "where d is the distance from A top, an p is a point on surface, ?? is the angle between A to p and the surface normal atp." . . .