Tesselator code