function measureCenter(obj) % Glenoid center is the point of the segmented glenoid's surface which is the % closest to the mean of all the points of the segmented glenoid's surface surfacePointsFromMeanPoint = obj.surface.points - obj.surface.meanPoint; centerIndex = findShortest3DVector(surfacePointsFromMeanPoint); obj.center = obj.surface.points(centerIndex,:); end