tris.c not complete