Removed saving of model ids. Save the corresponding color triangles instead for speedup.