cirved vertex math (WIP)