Added CW/CCW enumeration and nearest index