Fix wrong algorithm for make inner triangle list