Filling triangulated surfaces