Partition of right triangle