Compute index buffer object using triTable
Fix indentation