cleaning up main triangle mesh