- Edited
def getDistance(self,p1,p2):
ret= ((p2.x-p1.x)**2) + ((p2.y-p1.y)**2) + ((p2.z-p1.z)**2)
ret=math.sqrt(ret)
return ret
Its a blender script function. It takes the vertices point of two 3d vertices, to calculate their distance to each other.