Trying to calculate segments before global vertices