vertices triangles triang1 next_tri interior Here is the MATLAB code for generating the triang1 and next_tri arrays: mk_nxt_tri.m.