Leadwerks #1 I assume you are using a combination of the distance between the sphere center and a plane defined by the triangle, and the distance between the triangle verts and the center of the sphere?