Surface profile calculation