Working on the vertices to C function.