Text this: Generic mathematical representation for a machining tool path