Triangle partitioning